diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000000..4b20242869 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,7 @@ +{ + "name": "Node.js", + "image": "mcr.microsoft.com/devcontainers/typescript-node:24", + "features": { + "ghcr.io/devcontainers/features/docker-outside-of-docker:1": {} + } +} diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 68cdfffda0..a2a0fa4be7 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -4,16 +4,15 @@ about: Create a report to help us improve title: '' labels: '' assignees: '' - --- **Describe the bug** A clear and concise description of what the bug is. -** Client Version ** +**Client Version** e.g. `0.12.0` -** Server Version ** +**Server Version** e.g. `1.19.1` **To Reproduce** @@ -22,13 +21,14 @@ Steps to reproduce the behavior: **Expected behavior** A clear and concise description of what you expected to happen. -** Example Code** +**Example Code** Code snippet for what you are doing **Environment (please complete the following information):** - - OS: [e.g. Windows, Linux] - - NodeJS Version [eg. 10] - - Cloud runtime [e.g. Azure Functions, Lambda] + +- OS: [e.g. Windows, Linux] +- Node.js version [eg. 20] +- Cloud runtime [e.g. Azure Functions, Lambda] **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 0000000000..2ef325edf2 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,19 @@ +version: 2 +updates: + - package-ecosystem: 'npm' + directory: '/' + schedule: + interval: 'daily' + time: '02:00' + target-branch: 'main' + - package-ecosystem: 'github-actions' + directory: '/' + schedule: + interval: 'daily' + time: '03:00' + target-branch: 'main' + - package-ecosystem: 'devcontainers' + directory: '/' + schedule: + interval: 'weekly' + target-branch: 'main' diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 0c2e86dd96..f039ebabdc 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -10,38 +10,43 @@ # supported CodeQL languages. # ******** NOTE ******** -name: "CodeQL" +name: 'CodeQL' on: - push: - branches: [ master,release-1.x ] - pull_request: - # The branches below must be a subset of the branches above - branches: [ master,release-1.x ] - schedule: - - cron: '35 14 * * 3' + push: + branches: [master, main] + pull_request: + # The branches below must be a subset of the branches above + branches: [master, main] + schedule: + - cron: '35 14 * * 3' + +permissions: + actions: read + contents: read + security-events: write jobs: - analyze: - name: Analyze - runs-on: ubuntu-latest - - strategy: - fail-fast: false - matrix: - language: [ 'javascript' ] - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v2 - with: - languages: ${{ matrix.language }} - - - name: Autobuild - uses: github/codeql-action/autobuild@v2 - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + analyze: + name: Analyze + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + language: ['javascript'] + + steps: + - name: Checkout repository + uses: actions/checkout@v5.0.0 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v4 + with: + languages: ${{ matrix.language }} + + - name: Autobuild + uses: github/codeql-action/autobuild@v4 + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v4 diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index bba9800816..53f2654388 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -1,29 +1,29 @@ name: Build and Deploy Docs on: - push: - branches: - - master + push: + branches: + - main jobs: - build-and-deploy-docs: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2.3.1 - - name: Setup Node.js - uses: actions/setup-node@v2 - with: - node-version: '20' - # Pre-check to validate that versions match between package.json - # and package-lock.json. Needs to run before npm install - - name: Validate package.json and package-lock.json versions - run: node version-check.js - - name: Install dependencies - run: npm ci - - name: Build docs - run: npm run docs + build-and-deploy-docs: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v5.0.0 + - name: Setup Node.js + uses: actions/setup-node@v6 + with: + node-version: '20' + # Pre-check to validate that versions match between package.json + # and package-lock.json. Needs to run before npm install + - name: Validate package.json and package-lock.json versions + run: node version-check.js + - name: Install dependencies + run: npm ci + - name: Build docs + run: npm run docs - - name: Deploy docs - uses: JamesIves/github-pages-deploy-action@4.1.4 - with: - branch: gh-pages # The branch the action should deploy to. - folder: docs # The folder the action should deploy. + - name: Deploy docs + uses: JamesIves/github-pages-deploy-action@v4.7.4 + with: + branch: gh-pages # The branch the action should deploy to. + folder: docs # The folder the action should deploy. diff --git a/.github/workflows/generate-javascript.yml b/.github/workflows/generate-javascript.yml index 407298f02d..9eaabf33d1 100644 --- a/.github/workflows/generate-javascript.yml +++ b/.github/workflows/generate-javascript.yml @@ -19,15 +19,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Javascript - uses: actions/checkout@v4 + uses: actions/checkout@v5.0.0 - name: Setup Node - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version: '20' - name: Generate Openapi run: | - echo "export KUBERNETES_BRANCH=${{ github.event.inputs.kubernetesBranch }} >> ./settings" - echo "export GEN_COMMIT="${{ github.event.inputs.genCommit }}" >> ./settings" + echo "export KUBERNETES_BRANCH=${{ github.event.inputs.kubernetesBranch }}" >> ./settings + echo "export GEN_COMMIT=${{ github.event.inputs.genCommit }}" >> ./settings ./generate-client.sh - name: Generate Branch Name run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2ec7070455..c399458b73 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,6 +2,7 @@ name: Release permissions: contents: write + actions: write on: workflow_dispatch: @@ -32,9 +33,9 @@ jobs: environment: production steps: - name: Checkout Javascript - uses: actions/checkout@v4 + uses: actions/checkout@v5.0.0 - name: Setup Node - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version: '20' registry-url: 'https://registry.npmjs.org/' @@ -57,8 +58,8 @@ jobs: run: | git config --global user.name 'Github Bot' git config --global user.email '<>' - git tag ${{ github.events.inputs.version }} + git tag ${{ github.event.inputs.releaseVersion }} - name: Push tag if: ${{ github.event.inputs.dry_run != 'true' }} run: | - git push ${{ github.events.inputs.version }} + git push origin ${{ github.event.inputs.releaseVersion }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d9f6c57945..e8b514bb5b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,20 +2,20 @@ name: Kubernetes Javascript Client - Validation on: push: - branches: [master, release-1.x] + branches: [master, main] pull_request: - branches: [master, release-1.x] + branches: [master, main] jobs: build: runs-on: ubuntu-latest strategy: matrix: - node: ['23', '22', '20', '18'] + node: ['25', '24', '23', '22', '20', '18'] name: Node ${{ matrix.node }} validation steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v5.0.0 + - uses: actions/setup-node@v6 with: node-version: ${{ matrix.node }} # Pre-check to validate that versions match between package.json @@ -26,3 +26,6 @@ jobs: - run: npm run lint - run: npm audit --audit-level=critical - run: npm run build-with-tests && npm run test-transpiled + - name: Create k8s Kind Cluster + uses: helm/kind-action@v1 + - run: npm run integration-test diff --git a/.husky/pre-push b/.husky/pre-push index d1ee22f96f..cb79c59f75 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -1,2 +1,2 @@ -npm test && npm run lint +npm test && npm run lint && npm run build-with-tests && npm run test-transpiled diff --git a/.mocharc.json b/.mocharc.json deleted file mode 100644 index 4a8deec27a..0000000000 --- a/.mocharc.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "require": "tsx", - "extensions": ["ts"], - "spec": [ - "src/**/*_test.ts" - ], - "watch-files": [ - "src" - ] -} diff --git a/FETCH_MIGRATION.md b/FETCH_MIGRATION.md deleted file mode 100644 index 5fe7464c52..0000000000 --- a/FETCH_MIGRATION.md +++ /dev/null @@ -1,93 +0,0 @@ -# Fetch migration - -Request is fully deprecated requiring us to switch libraries (see [#414](https://github.com/kubernetes-client/javascript/issues/414) for more information). There were a few [different options](https://github.com/kubernetes-client/javascript/issues/414#issuecomment-978031677) for how this swap should be implemented but moving to a new open-api generator option was chosen since this project will acquire the advantages of an up-to-date open-api generator version. - -Fetch was selected as the new HTTP request library for this project due to its widespread adoption across the JavaScript ecosystem. Additonally, potential future updates to this project could allow this client to be available with browser JavaScript since fetch is native to the browser ([#165](https://github.com/kubernetes-client/javascript/issues/165)). - -[Node-fetch](https://www.npmjs.com/package/node-fetch) is our specific fetch package since it is the largest Node.js compatable implementation. Fetch is not implemented by default in Node. - -For more details see the initial discussion ([#754](https://github.com/kubernetes-client/javascript/issues/754)). - -## Release cycle - -The fetch generator will create breaking changes to this project's API. Consumers will have to make small modifications to their code to upgrade. - -We will continue to support the request version of this project for three Kubernetes API versions (~9 months) to give users time to migrate. - -Versioning will follow [npm semantic versioning](https://docs.npmjs.com/about-semantic-versioning). - -### Old generator (request) - -Code will be on the `release-0.x` branch. - -- `0.17.x` == old generator, Kubernetes 1.23 API -- `0.18.x` == old generator, Kubernetes 1.24 API -- `0.19.x` == old generator, Kubernetes 1.25 API - -Support for old generator stops after 1.25 - -### New generator (fetch) - -Code will be on the `master` branch. - -- `1.0.x` == new generator, Kubernetes 1.23 API -- `1.1.x` == new generator, Kubernetes 1.24 API -- `1.2.x` == new generator, Kubernetes 1.25 API - Support for subsequent kubernetes versions continues with the new generator. - -## Implementation steps - -### Other repositories - -- [x] Update [kubernetes-client/gen](https://github.com/kubernetes-client/gen)'s typescript-fetch files to let us pass in the `typescriptThreePlus` config option [1](https://github.com/OpenAPITools/openapi-generator/issues/9973) [2](https://github.com/OpenAPITools/openapi-generator/issues/3869#issuecomment-584152932) -- [x] Update [openapi-generator](https://github.com/OpenAPITools/openapi-generator)'s typescript-fetch flavor to mark parameters as optional if all parameters are optional [3](https://github.com/OpenAPITools/openapi-generator/issues/6440) - -### Kubernetes-client repository - -- [x] Increment `OPENAPI_GENERATOR_COMMIT` to be [version 5.3.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v5.3.0) (with the optional parameters addition) -- [x] `npm install node-fetch` to install node-fetch -- [x] Switch generate-client script to use typescript-fetch -- [x] Generate api with `npm run generate` -- [x] Match src/gen/api.ts to new generated layout (it changes slightly) -- [x] Fix errors in /src folder (due to new api) - - [x] migrate src/auth.ts, the dependent implementations (ex: azure_auth, gcp_auth etc) and tests to fetch api from request - - [x] migrate src/log.ts and its tests to fetch api from request - - [x] major remaining work is fixing up async signatures and return piping - - [x] migrate src/watch.ts and its tests to fetch api from request - - [x] remove decprecated requestImpl and RequestInterface - - [x] implement queryParams parameter in watch method by injecting them into the fetch call - - [x] update tests in src/watch_test.ts -- [x] Fix errors in test (due to new api) -- [ ] Test all features -- [ ] Fix JavaScript examples and validate their param signatures (due to new api) - - - [x] cache-example - - [x] example - - [x] follow-logs - - [ ] in-cluster-create-job-from-cronjob // done but unable to test with media type problems - - [x] in-cluster - - [x] ingress - - [x] namespace - - [ ] patch-example // throws an error `TypeError: Cannot read properties of undefined (reading 'makeRequestContext')` - - [x] raw-example (note: uses request lib directly, will require full fetch migration not just client param swap) - - [x] scale-deployment - - [x] top_pods - - [x] top - - [ ] yaml-example // create works but deletion throws an error `TypeError: Cannot read properties of undefined (reading 'makeRequestContext')` - -- [ ] Fix TypeScript examples and validate their param signatures (due to new api) - - - [ ] apply-example // KubernetesObjectApi is missing - - [x] attach-example - - [x] cp-example - - [x] exec-example - - [x] informer-with-label-selector - - [x] informer - - [x] port-forward - - [x] example - - [x] watch-example - -- [ ] Update docs - - [ ] Update README examples -- [ ] Document breaking changes for users - [ ] Release initial version (1.0.0) diff --git a/README.md b/README.md index 0f751f0458..bb97cd0ffe 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,6 @@ The Javascript clients for Kubernetes is implemented in [typescript](https://typescriptlang.org), but can be called from either Javascript or Typescript. The client is implemented for server-side use with Node. -The `request` library is currently being swapped to `fetch`. See the [fetch migration docs](./FETCH_MIGRATION.md) for more information and progress. - # Installation ```console @@ -29,8 +27,8 @@ kc.loadFromDefault(); const k8sApi = kc.makeApiClient(k8s.CoreV1Api); -k8sApi.listNamespacedPod('default').then((res) => { - console.log(res.body); +k8sApi.listNamespacedPod({ namespace: 'default' }).then((res) => { + console.log(res); }); ``` @@ -50,7 +48,7 @@ var namespace = { }, }; -k8sApi.createNamespace(namespace).then( +k8sApi.createNamespace({ body: namespace }).then( (response) => { console.log('Created namespace'); console.log(response); @@ -65,7 +63,8 @@ k8sApi.createNamespace(namespace).then( ); ``` -## Create a cluster configuration programatically +## Create a cluster configuration programmatically + ```javascript const k8s = require('@kubernetes/client-node'); @@ -98,7 +97,7 @@ const k8sApi = kc.makeApiClient(k8s.CoreV1Api); # Additional Examples and Documentation -There are several more JS and TS examples in the [examples](https://github.com/kubernetes-client/javascript/tree/master/examples) directory. +There are several more JS and TS examples in the [examples](https://github.com/kubernetes-client/javascript/tree/main/examples) directory. Documentation for the library is split into two resources: @@ -111,34 +110,43 @@ Prior to the `0.13.0` release, release versions did not track Kubernetes version release, we will increment the minor version whenever we update the minor Kubernetes API version (e.g. `1.19.x`) that this library is generated from. -Generally speaking newer clients will work with older Kubernetes, but compatability isn't 100% guaranteed. +We switched from `request` to `fetch` as the HTTP(S) backend for the `1.0.0` release. + +Generally speaking newer clients will work with older Kubernetes, but compatibility isn't 100% guaranteed. -| client version | older versions | 1.18 | 1.19 | 1.20 | 1.21 | 1.22 | -|----------------|----------------|------|------|------|------|------| -| 0.12.x | - | ✓ | x | x | x | x | -| 0.13.x | - | + | ✓ | x | x | x | -| 0.14.x | - | + | + | ✓ | x | x | -| 0.15.x | - | + | + | + | ✓ | x | -| 0.16.x | - | + | + | + | + | ✓ | +| client version | older versions | 1.28 | 1.29 | 1.30 | 1.31 | 1.32 | 1.33|1.34| +| -------------- | -------------- | ---- | ---- | ---- | ---- | ---- |----|----| +| 0.19.x | - | ✓ | x | x | x | x | x | x | +| 0.20.x | - | + | ✓ | x | x | x | x | x | +| 0.21.x | - | + | + | ✓ | x | x | x | x | +| 0.22.x | - | + | + | + | ✓ | x | x | x | +| 1.0.x | - | + | + | + | + | ✓ | x | x | +| 1.1.x | - | + | + | + | + | ✓ | x | x | +| 1.2.x | - | + | + | + | + | + | ✓ | x | +| 1.3.x | - | + | + | + | + | + | ✓ | x | +| 1.4.x | - | + | + | + | + | + | + | ✓| Key: -* `✓` Exactly the same features / API objects in both javascript-client and the Kubernetes +- `✓` Exactly the same features / API objects in both javascript-client and the Kubernetes version. -* `+` javascript-client has features or api objects that may not be present in the +- `+` javascript-client has features or api objects that may not be present in the Kubernetes cluster, but everything they have in common will work. -* `-` The Kubernetes cluster has features the javascript-client library can't use +- `-` The Kubernetes cluster has features the javascript-client library can't use (additional API objects, etc). -* `x` The Kubernetes cluster has no guarantees to support the API client of +- `x` The Kubernetes cluster has no guarantees to support the API client of this version, as it only promises _n_-2 version support. It is not tested, and operations using API versions that have been deprecated and removed in later server versions won't function correctly. # Known Issues -* Multiple kubeconfigs are not completely supported. + +- Multiple kubeconfigs are not completely supported. Credentials are cached based on the kubeconfig username and these can collide across configs. Here is the related [issue](https://github.com/kubernetes-client/javascript/issues/592). +- In scenarios where multiple headers with the same key are required in a request, such as `Impersonate-Group`, avoid using `fetch`. Fetch will merge the values into a single header key, with the values as a single string vs a list of strings, `Impersonate-Group: "group1,group2"`. The workaround is to use a low-level library such as `https` to make the request. Refer to issue [#2474](https://github.com/kubernetes-client/javascript/issues/2474) for more details. + # Development All dependencies of this project are expressed in its @@ -171,11 +179,12 @@ Run `npm run format` or install an editor plugin like https://github.com/prettie ## Linting -Run `npm run lint` or install an editor plugin like https://github.com/Microsoft/vscode-typescript-tslint-plugin +Run `npm run lint` or install an editor plugin. # Testing -Tests are written using the [Chai](http://chaijs.com/) library. See +Tests are written using the [`node:test`](https://nodejs.org/api/test.html) test runner and +[`node:assert`](https://nodejs.org/api/assert.html) assertion library. See [`config_test.ts`](./src/config_test.ts) for an example. To run tests, execute the following: diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000000..73465fb246 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,35 @@ +import eslint from '@eslint/js'; +import erasableSyntaxOnly from 'eslint-plugin-erasable-syntax-only'; +import tseslint from 'typescript-eslint'; + +export default tseslint.config( + { + ignores: ['dist/', 'docs/', 'node_modules/', 'src/gen/'], + }, + eslint.configs.recommended, + erasableSyntaxOnly.configs.recommended, + tseslint.configs.strict, + { + languageOptions: { + globals: { + Buffer: true, + console: true, + process: true, + setTimeout: true, + }, + }, + rules: { + '@typescript-eslint/ban-ts-comment': ['error', { 'ts-expect-error': false }], + '@typescript-eslint/no-empty-object-type': 'off', + '@typescript-eslint/no-explicit-any': 'off', + '@typescript-eslint/no-non-null-assertion': 'off', + '@typescript-eslint/no-unused-vars': [ + 'error', + { + args: 'none', + destructuredArrayIgnorePattern: '^_', + }, + ], + }, + }, +); diff --git a/examples/cache-example.js b/examples/cache-example.js index 59896fc3ee..78e9a88755 100644 --- a/examples/cache-example.js +++ b/examples/cache-example.js @@ -4,14 +4,10 @@ const kc = new k8s.KubeConfig(); kc.loadFromDefault(); const k8sApi = kc.makeApiClient(k8s.CoreV1Api); - const namespace = 'default'; - const path = '/api/v1/pods'; const watch = new k8s.Watch(kc); - const listFn = () => k8sApi.listPodForAllNamespaces(); - const cache = new k8s.ListWatch(path, watch, listFn); const looper = () => { diff --git a/examples/follow-logs.js b/examples/follow-logs.js index cce452ab01..c6aec08c98 100644 --- a/examples/follow-logs.js +++ b/examples/follow-logs.js @@ -5,9 +5,7 @@ const kc = new k8s.KubeConfig(); kc.loadFromDefault(); const log = new k8s.Log(kc); - const logStream = new stream.PassThrough(); - const namespace = 'default'; const pod = 'pod1'; const container = 'container1'; diff --git a/examples/in-cluster-create-job-from-cronjob.js b/examples/in-cluster-create-job-from-cronjob.js index 1265f37caf..c78e0c56fb 100644 --- a/examples/in-cluster-create-job-from-cronjob.js +++ b/examples/in-cluster-create-job-from-cronjob.js @@ -1,14 +1,12 @@ import * as k8s from '@kubernetes/client-node'; -const namespace = 'default'; - const kc = new k8s.KubeConfig(); kc.loadFromCluster(); const batchV1Api = kc.makeApiClient(k8s.BatchV1Api); -const batchV1beta1Api = kc.makeApiClient(k8s.BatchV1beta1Api); const cronJobName = 'cronjob'; const jobName = 'myjob'; +const namespace = 'default'; const job = new k8s.V1Job(); const metadata = new k8s.V1ObjectMeta(); @@ -21,9 +19,9 @@ metadata.annotations = { job.metadata = metadata; try { - const cronJobRes = await batchV1beta1Api.readNamespacedCronJob({ name: cronJobName, namespace }); + const cronJobRes = await batchV1Api.readNamespacedCronJob({ name: cronJobName, namespace }); job.spec = cronJobRes?.spec?.jobTemplate.spec; - const res = await batchV1Api..createNamespacedJob({ namespace, body: job }); + const res = await batchV1Api.createNamespacedJob({ namespace, body: job }); console.log(res); } catch (err) { console.error(err); diff --git a/examples/in-cluster.js b/examples/in-cluster.js index 4eccb0e7e9..5e707b9cd1 100644 --- a/examples/in-cluster.js +++ b/examples/in-cluster.js @@ -4,12 +4,10 @@ const kc = new k8s.KubeConfig(); kc.loadFromCluster(); const k8sApi = kc.makeApiClient(k8s.CoreV1Api); - const namespace = 'default'; try { const res = await k8sApi.listNamespacedPod({ namespace }); - console.log(res); } catch (err) { console.error(err); diff --git a/examples/kubectl/equivalents/apply.js b/examples/kubectl/equivalents/apply.js index b82a28650b..b894599f76 100644 --- a/examples/kubectl/equivalents/apply.js +++ b/examples/kubectl/equivalents/apply.js @@ -7,15 +7,15 @@ const client = k8s.KubernetesObjectApi.makeApiClient(kc); // update deployment "my-deployment" in namespace "my-namespace" to 3 replicas const deployment = { - apiVersion: 'apps/v1', - kind: 'Deployment', - metadata: { - name: 'my-deployment', - namespace: 'my-namespace' - }, - spec: { - replicas: 3 - } -} + apiVersion: 'apps/v1', + kind: 'Deployment', + metadata: { + name: 'my-deployment', + namespace: 'my-namespace', + }, + spec: { + replicas: 3, + }, +}; -client.patch(deployment) +client.patch(deployment); diff --git a/examples/kubectl/equivalents/create.js b/examples/kubectl/equivalents/create.js index b66b2a62c2..e01b05b4d9 100644 --- a/examples/kubectl/equivalents/create.js +++ b/examples/kubectl/equivalents/create.js @@ -4,11 +4,11 @@ const kc = new k8s.KubeConfig(); kc.loadFromDefault(); const client = k8s.KubernetesObjectApi.makeApiClient(kc); - const namespace = { + kind: 'Namespace', metadata: { - name: 'test' - } -} + name: 'test', + }, +}; -client.create(namespace) +client.create(namespace); diff --git a/examples/kubectl/equivalents/delete.js b/examples/kubectl/equivalents/delete.js index 57f1a92de8..348fe2a0cf 100644 --- a/examples/kubectl/equivalents/delete.js +++ b/examples/kubectl/equivalents/delete.js @@ -4,11 +4,11 @@ const kc = new k8s.KubeConfig(); kc.loadFromDefault(); const client = k8s.KubernetesObjectApi.makeApiClient(kc); - const namespace = { + kind: 'Namespace', metadata: { - name: 'test' - } -} + name: 'test', + }, +}; -client.delete(namespace) +client.delete(namespace); diff --git a/examples/kubectl/equivalents/get.js b/examples/kubectl/equivalents/get.js index ae14849071..9bf49b0384 100644 --- a/examples/kubectl/equivalents/get.js +++ b/examples/kubectl/equivalents/get.js @@ -4,12 +4,12 @@ const kc = new k8s.KubeConfig(); kc.loadFromDefault(); const client = k8s.KubernetesObjectApi.makeApiClient(kc); - const namespace = { + apiVersion: 'v1', + kind: 'Namespace', metadata: { - name: 'test' - } -} + name: 'test', + }, +}; -const live_namespace = (await client.read(namespace)).body -console.log(live_namespace) +console.log(await client.read(namespace)); diff --git a/examples/kubectl/equivalents/namespace-create-yaml.js b/examples/kubectl/equivalents/namespace-create-yaml.js new file mode 100644 index 0000000000..a659b1e06b --- /dev/null +++ b/examples/kubectl/equivalents/namespace-create-yaml.js @@ -0,0 +1,17 @@ +import * as k8s from '@kubernetes/client-node'; +import { readFileSync } from 'node:fs'; + +const kc = new k8s.KubeConfig(); +kc.loadFromDefault(); + +const k8sApi = kc.makeApiClient(k8s.CoreV1Api); + +// This code is the JavaScript equivalent of `kubectl apply -f namespace.yaml`. + +try { + const namespaceYaml = k8s.loadYaml(readFileSync('./namespace.yaml', 'utf8')); + const createdNamespace = await k8sApi.createNamespace({ body: namespaceYaml }); + console.log('New namespace created:', createdNamespace); +} catch (err) { + console.error(err); +} diff --git a/examples/kubectl/equivalents/namespace-create.js b/examples/kubectl/equivalents/namespace-create.js new file mode 100644 index 0000000000..22c16aee81 --- /dev/null +++ b/examples/kubectl/equivalents/namespace-create.js @@ -0,0 +1,20 @@ +import * as k8s from '@kubernetes/client-node'; + +const kc = new k8s.KubeConfig(); +kc.loadFromDefault(); + +const k8sApi = kc.makeApiClient(k8s.CoreV1Api); + +// This code is the JavaScript equivalent of `kubectl create namespace test`. + +try { + const namespace = { + metadata: { + name: 'test', + }, + }; + const createdNamespace = await k8sApi.createNamespace({ body: namespace }); + console.log('New namespace created:', createdNamespace); +} catch (err) { + console.error(err); +} diff --git a/examples/kubectl/equivalents/namespace-list.js b/examples/kubectl/equivalents/namespace-list.js new file mode 100644 index 0000000000..5c30bc529f --- /dev/null +++ b/examples/kubectl/equivalents/namespace-list.js @@ -0,0 +1,15 @@ +import * as k8s from '@kubernetes/client-node'; + +const kc = new k8s.KubeConfig(); +kc.loadFromDefault(); + +const k8sApi = kc.makeApiClient(k8s.CoreV1Api); + +// This code is the JavaScript equivalent of `kubectl get ns`. + +try { + const namespaces = await k8sApi.listNamespace(); + namespaces.items.forEach((namespace) => console.log(namespace.metadata.name)); +} catch (err) { + console.error(err); +} diff --git a/examples/kubectl/equivalents/namespace.yaml b/examples/kubectl/equivalents/namespace.yaml new file mode 100644 index 0000000000..06c856ead0 --- /dev/null +++ b/examples/kubectl/equivalents/namespace.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: test diff --git a/examples/kubectl/equivalents/pod-create.js b/examples/kubectl/equivalents/pod-create.js new file mode 100644 index 0000000000..d67f826cf4 --- /dev/null +++ b/examples/kubectl/equivalents/pod-create.js @@ -0,0 +1,33 @@ +import * as k8s from '@kubernetes/client-node'; + +const kc = new k8s.KubeConfig(); +kc.loadFromDefault(); + +const k8sApi = kc.makeApiClient(k8s.CoreV1Api); + +// This code is the JavaScript equivalent of `kubectl run demo-pod --image=nginx --namespace=default`. + +const pod = { + metadata: { + name: 'demo-pod', + }, + spec: { + containers: [ + { + name: 'nginx-container', + image: 'nginx', + }, + ], + }, +}; +const namespace = 'default'; + +try { + const createdPod = await k8sApi.createNamespacedPod({ + namespace, + body: pod, + }); + console.log('Created pod:', createdPod); +} catch (err) { + console.error(err); +} diff --git a/examples/kubectl/equivalents/pod-filter-by-namespace.js b/examples/kubectl/equivalents/pod-filter-by-namespace.js new file mode 100644 index 0000000000..25bd8f7180 --- /dev/null +++ b/examples/kubectl/equivalents/pod-filter-by-namespace.js @@ -0,0 +1,16 @@ +import * as k8s from '@kubernetes/client-node'; + +const kc = new k8s.KubeConfig(); +kc.loadFromDefault(); + +const k8sApi = kc.makeApiClient(k8s.CoreV1Api); + +// This code is the JavaScript equivalent of `kubectl get pods --namespace=default`. + +try { + const pods = await k8sApi.listNamespacedPod({ namespace: 'default' }); + + pods.items.forEach((pod) => console.log(pod.metadata.name)); +} catch (err) { + console.error(err); +} diff --git a/examples/kubectl/equivalents/resourceQuota-create.js b/examples/kubectl/equivalents/resourceQuota-create.js new file mode 100644 index 0000000000..559b6be8ce --- /dev/null +++ b/examples/kubectl/equivalents/resourceQuota-create.js @@ -0,0 +1,29 @@ +import * as k8s from '@kubernetes/client-node'; + +const kc = new k8s.KubeConfig(); +kc.loadFromDefault(); + +const k8sApi = kc.makeApiClient(k8s.CoreV1Api); + +// This code is the JavaScript equivalent of `kubectl create resourcequota my-quota --hard=pods=3`. + +try { + const quota = { + metadata: { + name: 'my-quota', + }, + spec: { + hard: { + pods: '3', + }, + }, + }; + const createdQuota = await k8sApi.createNamespacedResourceQuota({ + namespace: 'default', + body: quota, + }); + + console.log('Created quota:', createdQuota); +} catch (err) { + console.error(err); +} diff --git a/examples/kubectl/equivalents/resourceQuota-list.js b/examples/kubectl/equivalents/resourceQuota-list.js new file mode 100644 index 0000000000..db5d4048e5 --- /dev/null +++ b/examples/kubectl/equivalents/resourceQuota-list.js @@ -0,0 +1,16 @@ +import * as k8s from '@kubernetes/client-node'; + +const kc = new k8s.KubeConfig(); +kc.loadFromDefault(); + +const k8sApi = kc.makeApiClient(k8s.CoreV1Api); + +// This code is the JavaScript equivalent of `kubectl get resourcequotas --all-namespaces`. + +try { + const resourceQuotas = await k8sApi.listResourceQuotaForAllNamespaces(); + + resourceQuotas.items.forEach((quota) => console.log(quota.metadata.name)); +} catch (err) { + console.error(err); +} diff --git a/examples/patch-example.js b/examples/patch-example.js index b97b796587..d77df111bd 100644 --- a/examples/patch-example.js +++ b/examples/patch-example.js @@ -1,11 +1,9 @@ import * as k8s from '@kubernetes/client-node'; -import { PromiseMiddlewareWrapper } from '@kubernetes/client-node/dist/gen/middleware.js'; const kc = new k8s.KubeConfig(); kc.loadFromDefault(); const k8sApi = kc.makeApiClient(k8s.CoreV1Api); - const namespace = 'default'; try { @@ -19,37 +17,12 @@ try { }, }, ]; - const headerPatchMiddleware = new PromiseMiddlewareWrapper({ - pre: async (requestContext) => { - requestContext.setHeaderParam('Content-type', 'application/json-patch+json'); - return requestContext; - }, - post: async (responseContext) => responseContext, - }); - let currentContext = kc.getCurrentContext(); - let currentCluster = kc.getCluster(currentContext); - if (currentCluster === undefined || currentCluster === null) { - throw new Error('Cluster is undefined'); - } - let server = currentCluster.server; - if (server === undefined) { - throw new Error('Server is undefined'); - } - const baseServerConfig = new k8s.ServerConfiguration(server, {}); - const configuration = k8s.createConfiguration({ - middleware: [headerPatchMiddleware], - baseServer: baseServerConfig, - authMethods: { - default: kc, - }, - }); + await k8sApi.patchNamespacedPod( + { name: res?.items?.[0]?.metadata?.name ?? '', namespace, body: patch }, + k8s.setHeaderOptions('Content-Type', k8s.PatchStrategy.JsonPatch), + ); - await k8sApi - .patchNamespacedPod( - { name: res?.items?.[0].metadata?.name ?? '', namespace, body: patch }, - configuration, - ) console.log('Patched.'); } catch (err) { console.error('Error: '); diff --git a/examples/raw-example.js b/examples/raw-example.js index 2be6269b98..a1e3c8182b 100644 --- a/examples/raw-example.js +++ b/examples/raw-example.js @@ -9,6 +9,8 @@ const currentUser = kc.getCurrentUser(); const currentCluster = kc.getCurrentCluster(); const agent = new https.Agent({ + // If caData, certData, and keyData are undefined, read the values from the + // files specified in caFile, certFile, and keyFile. ca: Buffer.from(currentCluster?.caData ?? '', 'base64').toString('utf8'), cert: Buffer.from(currentUser?.certData ?? '', 'base64').toString('utf8'), keepAlive: true, @@ -31,5 +33,5 @@ try { console.log(`statusCode: ${response.status}`); console.log(`body: ${body}`); } catch (err) { - console.error(`error: ${error}`); + console.error(`error: ${err}`); } diff --git a/examples/scale-deployment.js b/examples/scale-deployment.js index 5a5ab6a918..4b74094db7 100644 --- a/examples/scale-deployment.js +++ b/examples/scale-deployment.js @@ -16,9 +16,6 @@ async function scale(namespace, name, replicas) { namespace, }); - if (!deployment || !deployment.spec) { - throw new Error(`Deployment ${name} not found in namespace ${namespace}`); - } // edit const newDeployment = { ...deployment, diff --git a/examples/top.js b/examples/top.js index 1ff337357c..4e3484ec3b 100644 --- a/examples/top.js +++ b/examples/top.js @@ -4,6 +4,5 @@ const kc = new k8s.KubeConfig(); kc.loadFromDefault(); const k8sApi = kc.makeApiClient(k8s.CoreV1Api); - const obj = await k8s.topNodes(k8sApi); console.log(obj); diff --git a/examples/typescript/apply/apply-example.ts b/examples/typescript/apply/apply-example.ts index b82a28650b..b894599f76 100644 --- a/examples/typescript/apply/apply-example.ts +++ b/examples/typescript/apply/apply-example.ts @@ -7,15 +7,15 @@ const client = k8s.KubernetesObjectApi.makeApiClient(kc); // update deployment "my-deployment" in namespace "my-namespace" to 3 replicas const deployment = { - apiVersion: 'apps/v1', - kind: 'Deployment', - metadata: { - name: 'my-deployment', - namespace: 'my-namespace' - }, - spec: { - replicas: 3 - } -} + apiVersion: 'apps/v1', + kind: 'Deployment', + metadata: { + name: 'my-deployment', + namespace: 'my-namespace', + }, + spec: { + replicas: 3, + }, +}; -client.patch(deployment) +client.patch(deployment); diff --git a/examples/typescript/apply/apply-from-file-example.ts b/examples/typescript/apply/apply-from-file-example.ts index ebc1c805df..c5cd837285 100644 --- a/examples/typescript/apply/apply-from-file-example.ts +++ b/examples/typescript/apply/apply-from-file-example.ts @@ -36,14 +36,14 @@ export async function apply(specPath: string): Promise { // // See: https://github.com/kubernetes/kubernetes/issues/97423 const response = await client.patch(spec); - created.push(response.body); + created.push(response); } catch (err) { // if the resource doesnt exist then create it - if (err instanceof k8s.HttpError && err.statusCode === 404) { - const response = await client.create(spec); - created.push(response.body); + if (err instanceof k8s.ApiException && err.code === 404) { + const response = await client.create(spec); + created.push(response); } else { - throw err + throw err; } } } diff --git a/examples/typescript/attach/attach-example.ts b/examples/typescript/attach/attach-example.ts index db372b6624..de37b1ea42 100644 --- a/examples/typescript/attach/attach-example.ts +++ b/examples/typescript/attach/attach-example.ts @@ -9,4 +9,12 @@ const namespace = 'default'; const pod = 'nginx-4217019353-9gl4s'; const container = 'nginx'; -attach.attach(namespace, pod, container, process.stdout, process.stderr, null /* stdin */, false /* tty */); +await attach.attach( + namespace, + pod, + container, + process.stdout, + process.stderr, + null /* stdin */, + false /* tty */, +); diff --git a/examples/typescript/cp/cp-example.ts b/examples/typescript/cp/cp-example.ts index 985330dc9d..92b81711c1 100644 --- a/examples/typescript/cp/cp-example.ts +++ b/examples/typescript/cp/cp-example.ts @@ -8,7 +8,7 @@ const cp = new k8s.Cp(kc); const namespace = 'default'; const pod = 'nginx-4217019353-9gl4s'; const container = 'nginx'; -const srcPath = '/test.txt'; +const srcPath = './test.txt'; const targetPath = '/tmp'; -cp.cpFromPod(namespace, pod, container, srcPath, targetPath); +await cp.cpFromPod(namespace, pod, container, srcPath, targetPath); diff --git a/examples/typescript/informer/informer.ts b/examples/typescript/informer/informer.ts index fa722a5146..b42ee8cdaa 100644 --- a/examples/typescript/informer/informer.ts +++ b/examples/typescript/informer/informer.ts @@ -1,15 +1,11 @@ import * as k8s from '@kubernetes/client-node'; const kc = new k8s.KubeConfig(); - kc.loadFromDefault(); const k8sApi = kc.makeApiClient(k8s.CoreV1Api); - const namespace = 'default'; - const listFn = () => k8sApi.listNamespacedPod({ namespace }); - const informer = k8s.makeInformer(kc, `/api/v1/namespaces/${namespace}/pods`, listFn); informer.on('add', (obj: k8s.V1Pod) => { diff --git a/examples/typescript/patch/patch-example.ts b/examples/typescript/patch/patch-example.ts index 94ef144596..f3d5c03d8e 100644 --- a/examples/typescript/patch/patch-example.ts +++ b/examples/typescript/patch/patch-example.ts @@ -1,13 +1,4 @@ -import { - CoreV1Api, - RequestContext, - ResponseContext, - KubeConfig, - createConfiguration, - Configuration, - ServerConfiguration, -} from '@kubernetes/client-node'; -import { PromiseMiddlewareWrapper } from '@kubernetes/client-node/dist/gen/middleware.js'; +import { CoreV1Api, KubeConfig, setHeaderOptions, PatchStrategy } from '@kubernetes/client-node'; const kc = new KubeConfig(); kc.loadFromDefault(); @@ -25,32 +16,8 @@ try { }, }, ]; - const headerPatchMiddleware = new PromiseMiddlewareWrapper({ - pre: async (requestContext: RequestContext) => { - requestContext.setHeaderParam('Content-type', 'application/json-patch+json'); - return requestContext; - }, - post: async (responseContext: ResponseContext) => responseContext, - }); - const currentContext = kc.getCurrentContext(); - const currentCluster = kc.getCluster(currentContext); - if (currentCluster === undefined || currentCluster === null) { - throw new Error('Cluster is undefined'); - } - const server = currentCluster.server; - if (server === undefined) { - throw new Error('Server is undefined'); - } - const baseServerConfig: ServerConfiguration<{}> = new ServerConfiguration<{}>(server, {}); - const configuration: Configuration = createConfiguration({ - middleware: [headerPatchMiddleware], - baseServer: baseServerConfig, - authMethods: { - default: kc, - }, - }); - const podName = res.items[0].metadata?.name; + const podName = res.items[0]?.metadata?.name; if (podName === undefined) { throw new Error('Pod name is undefined'); } @@ -61,8 +28,8 @@ try { namespace: 'default', body: patch, }, - configuration, - ) + setHeaderOptions('Content-Type', PatchStrategy.JsonPatch), + ); console.log('Patched.'); } catch (err) { diff --git a/examples/typescript/simple/example.ts b/examples/typescript/simple/example.ts index 9fc5f09bfa..a481ca2fab 100644 --- a/examples/typescript/simple/example.ts +++ b/examples/typescript/simple/example.ts @@ -8,7 +8,8 @@ const k8sApi = kc.makeApiClient(k8s.CoreV1Api); const namespace = 'default'; const res = await k8sApi.listNamespacedPod({ namespace }); -console.log(res.body); +console.log(res); // Example of instantiating a Pod object. +// eslint-disable-next-line @typescript-eslint/no-unused-vars const pod = {} as k8s.V1Pod; diff --git a/examples/typescript/tslint.json b/examples/typescript/tslint.json deleted file mode 100644 index 0e935ed77a..0000000000 --- a/examples/typescript/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "../../tslint.json", - "rules": { - "no-console": false - } -} diff --git a/examples/typescript/watch/watch-example.ts b/examples/typescript/watch/watch-example.ts index ecc8cc2bb3..b33d71f653 100644 --- a/examples/typescript/watch/watch-example.ts +++ b/examples/typescript/watch/watch-example.ts @@ -26,9 +26,13 @@ const req = await watch } console.log(apiObj); }, - // done callback is called if the watch terminates normally + // done callback is called if the watch terminates either normally or with an error (err) => { - console.log(err); + if (err) { + console.error(err); + } else { + console.log('watch finished normally') + } }, ) // watch returns a request object which you can use to abort the watch. diff --git a/examples/yaml-example.js b/examples/yaml-example.js index 7dc95c3eb7..73e60ed1de 100644 --- a/examples/yaml-example.js +++ b/examples/yaml-example.js @@ -19,7 +19,7 @@ try { console.log(response); const res = await k8sApi.readNamespace({ name: yamlNamespace.metadata.name }); console.log(res); - await k8sApi.deleteNamespace({ name: yamlNamespace.metadata.name }, {} /* delete options */); + await k8sApi.deleteNamespace({ name: yamlNamespace.metadata.name }); } catch (err) { console.error('Error!: ' + err); } diff --git a/package-lock.json b/package-lock.json index db188ef135..fbd6a1ffd5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,104 +1,63 @@ { "name": "@kubernetes/client-node", - "version": "1.0.0", - "lockfileVersion": 2, + "version": "2.0.0", + "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@kubernetes/client-node", - "version": "1.0.0", + "version": "2.0.0", "license": "Apache-2.0", "dependencies": { "@types/js-yaml": "^4.0.1", - "@types/node": "^22.0.0", - "@types/node-fetch": "^2.6.9", + "@types/node": "^24.0.0", + "@types/node-fetch": "^2.6.13", "@types/stream-buffers": "^3.0.3", - "@types/tar": "^6.1.1", - "@types/ws": "^8.5.4", "form-data": "^4.0.0", "hpagent": "^1.2.0", "isomorphic-ws": "^5.0.0", "js-yaml": "^4.1.0", - "jsonpath-plus": "^10.2.0", - "node-fetch": "^2.6.9", + "jsonpath-plus": "^10.3.0", + "node-fetch": "^2.7.0", "openid-client": "^6.1.3", "rfc4648": "^1.3.0", "socks-proxy-agent": "^8.0.4", "stream-buffers": "^3.0.2", - "tar": "^7.0.0", - "tmp-promise": "^3.0.2", - "ws": "^8.18.0" + "tar-fs": "^3.0.9", + "ws": "^8.18.2" }, "devDependencies": { - "@types/chai": "^5.0.0", - "@types/chai-as-promised": "^8.0.1", - "@types/mocha": "^10.0.1", + "@eslint/js": "^9.18.0", "@types/mock-fs": "^4.13.1", "c8": "^10.0.0", - "chai": "^5.1.2", - "chai-as-promised": "^8.0.0", + "eslint": "^9.18.0", + "eslint-plugin-erasable-syntax-only": "^0.4.0", "husky": "^9.0.6", - "mocha": "^11.0.1", "mock-fs": "^5.2.0", - "nock": "^13.2.9", + "nock": "^14.0.5", "prettier": "^3.0.0", "pretty-quick": "^4.0.0", "ts-mockito": "^2.3.1", - "tslint": "^6.1.3", "tsx": "^4.19.1", - "typedoc": "^0.27.1", - "typescript": "~5.7.2" - } - }, - "node_modules/@babel/code-frame": { - "version": "7.22.13", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.13.tgz", - "integrity": "sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==", - "dev": true, - "dependencies": { - "@babel/highlight": "^7.22.13", - "chalk": "^2.4.2" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", - "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/highlight": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.20.tgz", - "integrity": "sha512-dkdMCN3py0+ksCgYmGG8jKeGA/8Tk+gJwSYYlFGxG5lmhfKNoAy004YpLxpS1W2J8m/EK2Ew+yOs9pVRwO89mg==", - "dev": true, - "dependencies": { - "@babel/helper-validator-identifier": "^7.22.20", - "chalk": "^2.4.2", - "js-tokens": "^4.0.0" - }, - "engines": { - "node": ">=6.9.0" + "typedoc": "^0.28.0", + "typescript": "~5.9.2", + "typescript-eslint": "^8.26.0" } }, "node_modules/@bcoe/v8-coverage": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-1.0.1.tgz", - "integrity": "sha512-W+a0/JpU28AqH4IKtwUPcEUnUyXMDLALcn5/JLczGGT9fHE2sIby/xP/oQnx3nxkForzgzPy201RAKcB4xPAFQ==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-1.0.2.tgz", + "integrity": "sha512-6zABk/ECA/QYSCQ1NGiVwwbQerUCZ+TQbp64Q3AgmfNvurHH0j8TtXa1qbShXA6qqkpAj4V5W8pP6mLe1mcMqA==", "dev": true, + "license": "MIT", "engines": { "node": ">=18" } }, "node_modules/@esbuild/aix-ppc64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.23.1.tgz", - "integrity": "sha512-6VhYk1diRqrhBAqpJEdjASR/+WVRtfjpqKuNw11cLiaWpAT/Uu+nokB+UJnevzy/P9C/ty6AOe0dwueMrGh/iQ==", + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.2.tgz", + "integrity": "sha512-wCIboOL2yXZym2cgm6mlA742s9QeJ8DjGVaL39dLN4rRwrOgOyYSnOaFPhKZGLb2ngj4EyfAFjsNJwPXZvseag==", "cpu": [ "ppc64" ], @@ -113,9 +72,9 @@ } }, "node_modules/@esbuild/android-arm": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.23.1.tgz", - "integrity": "sha512-uz6/tEy2IFm9RYOyvKl88zdzZfwEfKZmnX9Cj1BHjeSGNuGLuMD1kR8y5bteYmwqKm1tj8m4cb/aKEorr6fHWQ==", + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.2.tgz", + "integrity": "sha512-NQhH7jFstVY5x8CKbcfa166GoV0EFkaPkCKBQkdPJFvo5u+nGXLEH/ooniLb3QI8Fk58YAx7nsPLozUWfCBOJA==", "cpu": [ "arm" ], @@ -130,9 +89,9 @@ } }, "node_modules/@esbuild/android-arm64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.23.1.tgz", - "integrity": "sha512-xw50ipykXcLstLeWH7WRdQuysJqejuAGPd30vd1i5zSyKK3WE+ijzHmLKxdiCMtH1pHz78rOg0BKSYOSB/2Khw==", + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.2.tgz", + "integrity": "sha512-5ZAX5xOmTligeBaeNEPnPaeEuah53Id2tX4c2CVP3JaROTH+j4fnfHCkr1PjXMd78hMst+TlkfKcW/DlTq0i4w==", "cpu": [ "arm64" ], @@ -147,9 +106,9 @@ } }, "node_modules/@esbuild/android-x64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.23.1.tgz", - "integrity": "sha512-nlN9B69St9BwUoB+jkyU090bru8L0NA3yFvAd7k8dNsVH8bi9a8cUAUSEcEEgTp2z3dbEDGJGfP6VUnkQnlReg==", + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.2.tgz", + "integrity": "sha512-Ffcx+nnma8Sge4jzddPHCZVRvIfQ0kMsUsCMcJRHkGJ1cDmhe4SsrYIjLUKn1xpHZybmOqCWwB0zQvsjdEHtkg==", "cpu": [ "x64" ], @@ -164,9 +123,9 @@ } }, "node_modules/@esbuild/darwin-arm64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.23.1.tgz", - "integrity": "sha512-YsS2e3Wtgnw7Wq53XXBLcV6JhRsEq8hkfg91ESVadIrzr9wO6jJDMZnCQbHm1Guc5t/CdDiFSSfWP58FNuvT3Q==", + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.2.tgz", + "integrity": "sha512-MpM6LUVTXAzOvN4KbjzU/q5smzryuoNjlriAIx+06RpecwCkL9JpenNzpKd2YMzLJFOdPqBpuub6eVRP5IgiSA==", "cpu": [ "arm64" ], @@ -181,9 +140,9 @@ } }, "node_modules/@esbuild/darwin-x64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.23.1.tgz", - "integrity": "sha512-aClqdgTDVPSEGgoCS8QDG37Gu8yc9lTHNAQlsztQ6ENetKEO//b8y31MMu2ZaPbn4kVsIABzVLXYLhCGekGDqw==", + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.2.tgz", + "integrity": "sha512-5eRPrTX7wFyuWe8FqEFPG2cU0+butQQVNcT4sVipqjLYQjjh8a8+vUTfgBKM88ObB85ahsnTwF7PSIt6PG+QkA==", "cpu": [ "x64" ], @@ -198,9 +157,9 @@ } }, "node_modules/@esbuild/freebsd-arm64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.23.1.tgz", - "integrity": "sha512-h1k6yS8/pN/NHlMl5+v4XPfikhJulk4G+tKGFIOwURBSFzE8bixw1ebjluLOjfwtLqY0kewfjLSrO6tN2MgIhA==", + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.2.tgz", + "integrity": "sha512-mLwm4vXKiQ2UTSX4+ImyiPdiHjiZhIaE9QvC7sw0tZ6HoNMjYAqQpGyui5VRIi5sGd+uWq940gdCbY3VLvsO1w==", "cpu": [ "arm64" ], @@ -215,9 +174,9 @@ } }, "node_modules/@esbuild/freebsd-x64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.23.1.tgz", - "integrity": "sha512-lK1eJeyk1ZX8UklqFd/3A60UuZ/6UVfGT2LuGo3Wp4/z7eRTRYY+0xOu2kpClP+vMTi9wKOfXi2vjUpO1Ro76g==", + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.2.tgz", + "integrity": "sha512-6qyyn6TjayJSwGpm8J9QYYGQcRgc90nmfdUb0O7pp1s4lTY+9D0H9O02v5JqGApUyiHOtkz6+1hZNvNtEhbwRQ==", "cpu": [ "x64" ], @@ -232,9 +191,9 @@ } }, "node_modules/@esbuild/linux-arm": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.23.1.tgz", - "integrity": "sha512-CXXkzgn+dXAPs3WBwE+Kvnrf4WECwBdfjfeYHpMeVxWE0EceB6vhWGShs6wi0IYEqMSIzdOF1XjQ/Mkm5d7ZdQ==", + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.2.tgz", + "integrity": "sha512-UHBRgJcmjJv5oeQF8EpTRZs/1knq6loLxTsjc3nxO9eXAPDLcWW55flrMVc97qFPbmZP31ta1AZVUKQzKTzb0g==", "cpu": [ "arm" ], @@ -249,9 +208,9 @@ } }, "node_modules/@esbuild/linux-arm64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.23.1.tgz", - "integrity": "sha512-/93bf2yxencYDnItMYV/v116zff6UyTjo4EtEQjUBeGiVpMmffDNUyD9UN2zV+V3LRV3/on4xdZ26NKzn6754g==", + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.2.tgz", + "integrity": "sha512-gq/sjLsOyMT19I8obBISvhoYiZIAaGF8JpeXu1u8yPv8BE5HlWYobmlsfijFIZ9hIVGYkbdFhEqC0NvM4kNO0g==", "cpu": [ "arm64" ], @@ -266,9 +225,9 @@ } }, "node_modules/@esbuild/linux-ia32": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.23.1.tgz", - "integrity": "sha512-VTN4EuOHwXEkXzX5nTvVY4s7E/Krz7COC8xkftbbKRYAl96vPiUssGkeMELQMOnLOJ8k3BY1+ZY52tttZnHcXQ==", + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.2.tgz", + "integrity": "sha512-bBYCv9obgW2cBP+2ZWfjYTU+f5cxRoGGQ5SeDbYdFCAZpYWrfjjfYwvUpP8MlKbP0nwZ5gyOU/0aUzZ5HWPuvQ==", "cpu": [ "ia32" ], @@ -283,9 +242,9 @@ } }, "node_modules/@esbuild/linux-loong64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.23.1.tgz", - "integrity": "sha512-Vx09LzEoBa5zDnieH8LSMRToj7ir/Jeq0Gu6qJ/1GcBq9GkfoEAoXvLiW1U9J1qE/Y/Oyaq33w5p2ZWrNNHNEw==", + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.2.tgz", + "integrity": "sha512-SHNGiKtvnU2dBlM5D8CXRFdd+6etgZ9dXfaPCeJtz+37PIUlixvlIhI23L5khKXs3DIzAn9V8v+qb1TRKrgT5w==", "cpu": [ "loong64" ], @@ -300,9 +259,9 @@ } }, "node_modules/@esbuild/linux-mips64el": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.23.1.tgz", - "integrity": "sha512-nrFzzMQ7W4WRLNUOU5dlWAqa6yVeI0P78WKGUo7lg2HShq/yx+UYkeNSE0SSfSure0SqgnsxPvmAUu/vu0E+3Q==", + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.2.tgz", + "integrity": "sha512-hDDRlzE6rPeoj+5fsADqdUZl1OzqDYow4TB4Y/3PlKBD0ph1e6uPHzIQcv2Z65u2K0kpeByIyAjCmjn1hJgG0Q==", "cpu": [ "mips64el" ], @@ -317,9 +276,9 @@ } }, "node_modules/@esbuild/linux-ppc64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.23.1.tgz", - "integrity": "sha512-dKN8fgVqd0vUIjxuJI6P/9SSSe/mB9rvA98CSH2sJnlZ/OCZWO1DJvxj8jvKTfYUdGfcq2dDxoKaC6bHuTlgcw==", + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.2.tgz", + "integrity": "sha512-tsHu2RRSWzipmUi9UBDEzc0nLc4HtpZEI5Ba+Omms5456x5WaNuiG3u7xh5AO6sipnJ9r4cRWQB2tUjPyIkc6g==", "cpu": [ "ppc64" ], @@ -334,9 +293,9 @@ } }, "node_modules/@esbuild/linux-riscv64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.23.1.tgz", - "integrity": "sha512-5AV4Pzp80fhHL83JM6LoA6pTQVWgB1HovMBsLQ9OZWLDqVY8MVobBXNSmAJi//Csh6tcY7e7Lny2Hg1tElMjIA==", + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.2.tgz", + "integrity": "sha512-k4LtpgV7NJQOml/10uPU0s4SAXGnowi5qBSjaLWMojNCUICNu7TshqHLAEbkBdAszL5TabfvQ48kK84hyFzjnw==", "cpu": [ "riscv64" ], @@ -351,9 +310,9 @@ } }, "node_modules/@esbuild/linux-s390x": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.23.1.tgz", - "integrity": "sha512-9ygs73tuFCe6f6m/Tb+9LtYxWR4c9yg7zjt2cYkjDbDpV/xVn+68cQxMXCjUpYwEkze2RcU/rMnfIXNRFmSoDw==", + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.2.tgz", + "integrity": "sha512-GRa4IshOdvKY7M/rDpRR3gkiTNp34M0eLTaC1a08gNrh4u488aPhuZOCpkF6+2wl3zAN7L7XIpOFBhnaE3/Q8Q==", "cpu": [ "s390x" ], @@ -368,9 +327,9 @@ } }, "node_modules/@esbuild/linux-x64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.23.1.tgz", - "integrity": "sha512-EV6+ovTsEXCPAp58g2dD68LxoP/wK5pRvgy0J/HxPGB009omFPv3Yet0HiaqvrIrgPTBuC6wCH1LTOY91EO5hQ==", + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.2.tgz", + "integrity": "sha512-QInHERlqpTTZ4FRB0fROQWXcYRD64lAoiegezDunLpalZMjcUcld3YzZmVJ2H/Cp0wJRZ8Xtjtj0cEHhYc/uUg==", "cpu": [ "x64" ], @@ -384,10 +343,27 @@ "node": ">=18" } }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.2.tgz", + "integrity": "sha512-talAIBoY5M8vHc6EeI2WW9d/CkiO9MQJ0IOWX8hrLhxGbro/vBXJvaQXefW2cP0z0nQVTdQ/eNyGFV1GSKrxfw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, "node_modules/@esbuild/netbsd-x64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.23.1.tgz", - "integrity": "sha512-aevEkCNu7KlPRpYLjwmdcuNz6bDFiE7Z8XC4CPqExjTvrHugh28QzUXVOZtiYghciKUacNktqxdpymplil1beA==", + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.2.tgz", + "integrity": "sha512-voZT9Z+tpOxrvfKFyfDYPc4DO4rk06qamv1a/fkuzHpiVBMOhpjK+vBmWM8J1eiB3OLSMFYNaOaBNLXGChf5tg==", "cpu": [ "x64" ], @@ -402,9 +378,9 @@ } }, "node_modules/@esbuild/openbsd-arm64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.23.1.tgz", - "integrity": "sha512-3x37szhLexNA4bXhLrCC/LImN/YtWis6WXr1VESlfVtVeoFJBRINPJ3f0a/6LV8zpikqoUg4hyXw0sFBt5Cr+Q==", + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.2.tgz", + "integrity": "sha512-dcXYOC6NXOqcykeDlwId9kB6OkPUxOEqU+rkrYVqJbK2hagWOMrsTGsMr8+rW02M+d5Op5NNlgMmjzecaRf7Tg==", "cpu": [ "arm64" ], @@ -419,9 +395,9 @@ } }, "node_modules/@esbuild/openbsd-x64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.23.1.tgz", - "integrity": "sha512-aY2gMmKmPhxfU+0EdnN+XNtGbjfQgwZj43k8G3fyrDM/UdZww6xrWxmDkuz2eCZchqVeABjV5BpildOrUbBTqA==", + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.2.tgz", + "integrity": "sha512-t/TkWwahkH0Tsgoq1Ju7QfgGhArkGLkF1uYz8nQS/PPFlXbP5YgRpqQR3ARRiC2iXoLTWFxc6DJMSK10dVXluw==", "cpu": [ "x64" ], @@ -436,9 +412,9 @@ } }, "node_modules/@esbuild/sunos-x64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.23.1.tgz", - "integrity": "sha512-RBRT2gqEl0IKQABT4XTj78tpk9v7ehp+mazn2HbUeZl1YMdaGAQqhapjGTCe7uw7y0frDi4gS0uHzhvpFuI1sA==", + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.2.tgz", + "integrity": "sha512-cfZH1co2+imVdWCjd+D1gf9NjkchVhhdpgb1q5y6Hcv9TP6Zi9ZG/beI3ig8TvwT9lH9dlxLq5MQBBgwuj4xvA==", "cpu": [ "x64" ], @@ -453,9 +429,9 @@ } }, "node_modules/@esbuild/win32-arm64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.23.1.tgz", - "integrity": "sha512-4O+gPR5rEBe2FpKOVyiJ7wNDPA8nGzDuJ6gN4okSA1gEOYZ67N8JPk58tkWtdtPeLz7lBnY6I5L3jdsr3S+A6A==", + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.2.tgz", + "integrity": "sha512-7Loyjh+D/Nx/sOTzV8vfbB3GJuHdOQyrOryFdZvPHLf42Tk9ivBU5Aedi7iyX+x6rbn2Mh68T4qq1SDqJBQO5Q==", "cpu": [ "arm64" ], @@ -470,9 +446,9 @@ } }, "node_modules/@esbuild/win32-ia32": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.23.1.tgz", - "integrity": "sha512-BcaL0Vn6QwCwre3Y717nVHZbAa4UBEigzFm6VdsVdT/MbZ38xoj1X9HPkZhbmaBGUD1W8vxAfffbDe8bA6AKnQ==", + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.2.tgz", + "integrity": "sha512-WRJgsz9un0nqZJ4MfhabxaD9Ft8KioqU3JMinOTvobbX6MOSUigSBlogP8QB3uxpJDsFS6yN+3FDBdqE5lg9kg==", "cpu": [ "ia32" ], @@ -487,9 +463,9 @@ } }, "node_modules/@esbuild/win32-x64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.23.1.tgz", - "integrity": "sha512-BHpFFeslkWrXWyUPnbKm+xYYVYruCinGcftSBaa8zoF9hZO4BcSCFUvHVTtzpIY6YzUnYtuEhZ+C9iEXjxnasg==", + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.2.tgz", + "integrity": "sha512-kM3HKb16VIXZyIeVrM1ygYmZBKybX8N4p754bw390wGO3Tf2j4L2/WYL+4suWujpgf6GBYs3jv7TyUivdd05JA==", "cpu": [ "x64" ], @@ -503,115 +479,294 @@ "node": ">=18" } }, - "node_modules/@gerrit0/mini-shiki": { - "version": "1.24.1", - "resolved": "https://registry.npmjs.org/@gerrit0/mini-shiki/-/mini-shiki-1.24.1.tgz", - "integrity": "sha512-PNP/Gjv3VqU7z7DjRgO3F9Ok5frTKqtpV+LJW1RzMcr2zpRk0ulhEWnbcNGXzPC7BZyWMIHrkfQX2GZRfxrn6Q==", + "node_modules/@eslint-community/eslint-utils": { + "version": "4.8.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.8.0.tgz", + "integrity": "sha512-MJQFqrZgcW0UNYLGOuQpey/oTN59vyWwplvCGZztn1cKz9agZPPYpJB7h2OMmuu7VLqkvEjN8feFZJmxNF9D+Q==", "dev": true, + "license": "MIT", "dependencies": { - "@shikijs/engine-oniguruma": "^1.24.0", - "@shikijs/types": "^1.24.0", - "@shikijs/vscode-textmate": "^9.3.0" + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" } }, - "node_modules/@isaacs/cliui": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", - "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.12.1", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", + "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/config-array": { + "version": "0.21.1", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.1.tgz", + "integrity": "sha512-aw1gNayWpdI/jSYVgzN5pL0cfzU02GT3NBpeT/DXbx1/1x7ZKxFPd9bwrzygx/qiwIQiJ1sw/zD8qY/kRvlGHA==", + "dev": true, + "license": "Apache-2.0", "dependencies": { - "string-width": "^5.1.2", - "string-width-cjs": "npm:string-width@^4.2.0", - "strip-ansi": "^7.0.1", - "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", - "wrap-ansi": "^8.1.0", - "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + "@eslint/object-schema": "^2.1.7", + "debug": "^4.3.1", + "minimatch": "^3.1.2" }, "engines": { - "node": ">=12" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, - "node_modules/@isaacs/cliui/node_modules/ansi-regex": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", - "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", + "node_modules/@eslint/config-array/node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/@eslint/config-array/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, "engines": { - "node": ">=12" + "node": "*" + } + }, + "node_modules/@eslint/config-helpers": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.4.2.tgz", + "integrity": "sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^0.17.0" }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, - "node_modules/@isaacs/cliui/node_modules/ansi-styles": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", - "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "node_modules/@eslint/core": { + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.17.0.tgz", + "integrity": "sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@types/json-schema": "^7.0.15" + }, "engines": { - "node": ">=12" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.1.tgz", + "integrity": "sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^10.0.1", + "globals": "^14.0.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "url": "https://opencollective.com/eslint" } }, - "node_modules/@isaacs/cliui/node_modules/emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==" + "node_modules/@eslint/eslintrc/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } }, - "node_modules/@isaacs/cliui/node_modules/string-width": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "node_modules/@eslint/eslintrc/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", "dependencies": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" + "brace-expansion": "^1.1.7" }, "engines": { - "node": ">=12" + "node": "*" + } + }, + "node_modules/@eslint/js": { + "version": "9.39.1", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.1.tgz", + "integrity": "sha512-S26Stp4zCy88tH94QbBv3XCuzRQiZ9yXofEILmglYTh/Ug/a9/umqvgFtYBAo3Lp0nsI/5/qH1CCrbdK3AP1Tw==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://eslint.org/donate" } }, - "node_modules/@isaacs/cliui/node_modules/strip-ansi": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.0.1.tgz", - "integrity": "sha512-cXNxvT8dFNRVfhVME3JAe98mkXDYN2O1l7jmcwMnOslDeESg1rF/OZMtK0nRAhiari1unG5cD4jG3rapUAkLbw==", + "node_modules/@eslint/object-schema": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.7.tgz", + "integrity": "sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/plugin-kit": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.4.1.tgz", + "integrity": "sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==", + "dev": true, + "license": "Apache-2.0", "dependencies": { - "ansi-regex": "^6.0.1" + "@eslint/core": "^0.17.0", + "levn": "^0.4.1" }, "engines": { - "node": ">=12" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@gerrit0/mini-shiki": { + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/@gerrit0/mini-shiki/-/mini-shiki-3.12.0.tgz", + "integrity": "sha512-CF1vkfe2ViPtmoFEvtUWilEc4dOCiFzV8+J7/vEISSsslKQ97FjeTPNMCqUhZEiKySmKRgK3UO/CxtkyOp7DvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/engine-oniguruma": "^3.12.0", + "@shikijs/langs": "^3.12.0", + "@shikijs/themes": "^3.12.0", + "@shikijs/types": "^3.12.0", + "@shikijs/vscode-textmate": "^10.0.2" + } + }, + "node_modules/@humanfs/core": { + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", + "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node": { + "version": "0.16.6", + "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.6.tgz", + "integrity": "sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@humanfs/core": "^0.19.1", + "@humanwhocodes/retry": "^0.3.0" + }, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node/node_modules/@humanwhocodes/retry": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.1.tgz", + "integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18" }, "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" + "type": "github", + "url": "https://github.com/sponsors/nzakas" } }, - "node_modules/@isaacs/cliui/node_modules/wrap-ansi": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", - "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", - "dependencies": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12.22" }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/retry": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.2.tgz", + "integrity": "sha512-xeO57FpIu4p1Ri3Jq/EXq4ClRm86dVF2z/+kvFnyqVYRavTZmaFaUBbWCOuuTh0o/g7DSsk6kc2vrS4Vl5oPOQ==", + "dev": true, + "license": "Apache-2.0", "engines": { - "node": ">=12" + "node": ">=18.18" }, "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + "type": "github", + "url": "https://github.com/sponsors/nzakas" } }, - "node_modules/@isaacs/fs-minipass": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@isaacs/fs-minipass/-/fs-minipass-4.0.0.tgz", - "integrity": "sha512-S00nN1Qt3z3dSP6Db45fj/mksrAq5XWNIJ/SWXGP8XPT2jrzEuYRCSEx08JpJwBcG2F1xgiOtBMGDU0AZHmxew==", + "node_modules/@isaacs/cliui": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", + "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "dev": true, + "license": "ISC", "dependencies": { - "minipass": "^7.0.4" + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" }, "engines": { - "node": ">=18.0.0" + "node": ">=12" } }, "node_modules/@istanbuljs/schema": { @@ -619,30 +774,34 @@ "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", - "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.0.0" } }, "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.15", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", - "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", - "dev": true + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", + "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", + "dev": true, + "license": "MIT" }, "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.20", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.20.tgz", - "integrity": "sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==", + "version": "0.3.25", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", "dev": true, + "license": "MIT", "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" @@ -652,6 +811,7 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/@jsep-plugin/assignment/-/assignment-1.3.0.tgz", "integrity": "sha512-VVgV+CXrhbMI3aSusQyclHkenWSAm95WaiKrMxRFam3JSUiIaQjoMIw2sEs/OX4XifnqeQUN4DYbJjlA8EfktQ==", + "license": "MIT", "engines": { "node": ">= 10.16.0" }, @@ -663,6 +823,7 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/@jsep-plugin/regex/-/regex-1.0.4.tgz", "integrity": "sha512-q7qL4Mgjs1vByCaTnDFcBnV9HS7GVPJX5vyVoCgZHNSC9rjwIlmbXG5sUuorR5ndfHAIlJ8pVStxvjXHbNvtUg==", + "license": "MIT", "engines": { "node": ">= 10.16.0" }, @@ -670,70 +831,170 @@ "jsep": "^0.4.0||^1.0.0" } }, - "node_modules/@pkgjs/parseargs": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", - "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", - "optional": true, + "node_modules/@mswjs/interceptors": { + "version": "0.39.5", + "resolved": "https://registry.npmjs.org/@mswjs/interceptors/-/interceptors-0.39.5.tgz", + "integrity": "sha512-B9nHSJYtsv79uo7QdkZ/b/WoKm20IkVSmTc/WCKarmDtFwM0dRx2ouEniqwNkzCSLn3fydzKmnMzjtfdOWt3VQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@open-draft/deferred-promise": "^2.2.0", + "@open-draft/logger": "^0.3.0", + "@open-draft/until": "^2.0.0", + "is-node-process": "^1.2.0", + "outvariant": "^1.4.3", + "strict-event-emitter": "^0.5.1" + }, "engines": { - "node": ">=14" + "node": ">=18" } }, - "node_modules/@shikijs/engine-oniguruma": { - "version": "1.24.0", - "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-1.24.0.tgz", - "integrity": "sha512-Eua0qNOL73Y82lGA4GF5P+G2+VXX9XnuUxkiUuwcxQPH4wom+tE39kZpBFXfUuwNYxHSkrSxpB1p4kyRW0moSg==", + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", "dev": true, "dependencies": { - "@shikijs/types": "1.24.0", - "@shikijs/vscode-textmate": "^9.3.0" + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" } }, - "node_modules/@shikijs/types": { - "version": "1.24.0", - "resolved": "https://registry.npmjs.org/@shikijs/types/-/types-1.24.0.tgz", - "integrity": "sha512-aptbEuq1Pk88DMlCe+FzXNnBZ17LCiLIGWAeCWhoFDzia5Q5Krx3DgnULLiouSdd6+LUM39XwXGppqYE0Ghtug==", + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", "dev": true, - "dependencies": { - "@shikijs/vscode-textmate": "^9.3.0", - "@types/hast": "^3.0.4" + "engines": { + "node": ">= 8" } }, - "node_modules/@shikijs/vscode-textmate": { - "version": "9.3.0", - "resolved": "https://registry.npmjs.org/@shikijs/vscode-textmate/-/vscode-textmate-9.3.0.tgz", - "integrity": "sha512-jn7/7ky30idSkd/O5yDBfAnVt+JJpepofP/POZ1iMOxK59cOfqIgg/Dj0eFsjOTMw+4ycJN0uhZH/Eb0bs/EUA==", - "dev": true - }, - "node_modules/@types/chai": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.0.1.tgz", - "integrity": "sha512-5T8ajsg3M/FOncpLYW7sdOcD6yf4+722sze/tc4KQV0P8Z2rAr3SAuHCIkYmYpt8VbcQlnz8SxlOlPQYefe4cA==", + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", "dev": true, "dependencies": { - "@types/deep-eql": "*" + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" } }, - "node_modules/@types/chai-as-promised": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/@types/chai-as-promised/-/chai-as-promised-8.0.1.tgz", - "integrity": "sha512-dAlDhLjJlABwAVYObo9TPWYTRg9NaQM5CXeaeJYcYAkvzUf0JRLIiog88ao2Wqy/20WUnhbbUZcgvngEbJ3YXQ==", + "node_modules/@open-draft/deferred-promise": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@open-draft/deferred-promise/-/deferred-promise-2.2.0.tgz", + "integrity": "sha512-CecwLWx3rhxVQF6V4bAgPS5t+So2sTbPgAzafKkVizyi7tlwpcFpdFqq+wqF2OwNBmqFuu6tOyouTuxgpMfzmA==", "dev": true, - "dependencies": { - "@types/chai": "*" - } + "license": "MIT" }, - "node_modules/@types/deep-eql": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz", - "integrity": "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==", - "dev": true + "node_modules/@open-draft/logger": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@open-draft/logger/-/logger-0.3.0.tgz", + "integrity": "sha512-X2g45fzhxH238HKO4xbSr7+wBS8Fvw6ixhTDuvLd5mqh6bJJCFAPwU9mPDxbcrRtfxv4u5IHCEH77BmxvXmmxQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-node-process": "^1.2.0", + "outvariant": "^1.4.0" + } + }, + "node_modules/@open-draft/until": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@open-draft/until/-/until-2.1.0.tgz", + "integrity": "sha512-U69T3ItWHvLwGg5eJ0n3I62nWuE6ilHlmz7zM0npLBRvPRd7e6NYmg54vvRtP5mZG7kZqZCFVdsTWo7BPtBujg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@pkgjs/parseargs": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", + "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "dev": true, + "license": "MIT", + "optional": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/@pkgr/core": { + "version": "0.2.7", + "resolved": "https://registry.npmjs.org/@pkgr/core/-/core-0.2.7.tgz", + "integrity": "sha512-YLT9Zo3oNPJoBjBc4q8G2mjU4tqIbf5CEOORbUUr48dCD9q3umJ3IPlVqOqDakPfd2HuwccBaqlGhN4Gmr5OWg==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.20.0 || ^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/pkgr" + } + }, + "node_modules/@shikijs/engine-oniguruma": { + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-3.12.0.tgz", + "integrity": "sha512-IfDl3oXPbJ/Jr2K8mLeQVpnF+FxjAc7ZPDkgr38uEw/Bg3u638neSrpwqOTnTHXt1aU0Fk1/J+/RBdst1kVqLg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/types": "3.12.0", + "@shikijs/vscode-textmate": "^10.0.2" + } + }, + "node_modules/@shikijs/langs": { + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/@shikijs/langs/-/langs-3.12.0.tgz", + "integrity": "sha512-HIca0daEySJ8zuy9bdrtcBPhcYBo8wR1dyHk1vKrOuwDsITtZuQeGhEkcEfWc6IDyTcom7LRFCH6P7ljGSCEiQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/types": "3.12.0" + } + }, + "node_modules/@shikijs/themes": { + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/@shikijs/themes/-/themes-3.12.0.tgz", + "integrity": "sha512-/lxvQxSI5s4qZLV/AuFaA4Wt61t/0Oka/P9Lmpr1UV+HydNCczO3DMHOC/CsXCCpbv4Zq8sMD0cDa7mvaVoj0Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/types": "3.12.0" + } + }, + "node_modules/@shikijs/types": { + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/@shikijs/types/-/types-3.12.0.tgz", + "integrity": "sha512-jsFzm8hCeTINC3OCmTZdhR9DOl/foJWplH2Px0bTi4m8z59fnsueLsweX82oGcjRQ7mfQAluQYKGoH2VzsWY4A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/vscode-textmate": "^10.0.2", + "@types/hast": "^3.0.4" + } + }, + "node_modules/@shikijs/vscode-textmate": { + "version": "10.0.2", + "resolved": "https://registry.npmjs.org/@shikijs/vscode-textmate/-/vscode-textmate-10.0.2.tgz", + "integrity": "sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/estree": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.7.tgz", + "integrity": "sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ==", + "dev": true, + "license": "MIT" }, "node_modules/@types/hast": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.4.tgz", "integrity": "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==", "dev": true, + "license": "MIT", "dependencies": { "@types/unist": "*" } @@ -742,695 +1003,902 @@ "version": "2.0.6", "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@types/js-yaml": { "version": "4.0.9", "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-4.0.9.tgz", - "integrity": "sha512-k4MGaQl5TGo/iipqb2UDG2UwjXziSWkh0uysQelTlJpX1qGlpUZYm8PnO4DxG1qBomtJUdYJ6qR6xdIah10JLg==" + "integrity": "sha512-k4MGaQl5TGo/iipqb2UDG2UwjXziSWkh0uysQelTlJpX1qGlpUZYm8PnO4DxG1qBomtJUdYJ6qR6xdIah10JLg==", + "license": "MIT" }, - "node_modules/@types/mocha": { - "version": "10.0.10", - "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-10.0.10.tgz", - "integrity": "sha512-xPyYSz1cMPnJQhl0CLMH68j3gprKZaTjG3s5Vi+fDgx+uhG9NOXwbVt52eFS8ECyXhyKcjDLCBEqBExKuiZb7Q==", - "dev": true + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true, + "license": "MIT" }, "node_modules/@types/mock-fs": { "version": "4.13.4", "resolved": "https://registry.npmjs.org/@types/mock-fs/-/mock-fs-4.13.4.tgz", "integrity": "sha512-mXmM0o6lULPI8z3XNnQCpL0BGxPwx1Ul1wXYEPBGl4efShyxW2Rln0JOPEWGyZaYZMM6OVXM/15zUuFMY52ljg==", "dev": true, + "license": "MIT", "dependencies": { "@types/node": "*" } }, "node_modules/@types/node": { - "version": "22.10.2", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.10.2.tgz", - "integrity": "sha512-Xxr6BBRCAOQixvonOye19wnzyDiUtTeqldOOmj3CkeblonbccA12PFwlufvRdrpjXxqnmUaeiU5EOA+7s5diUQ==", + "version": "24.10.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.10.0.tgz", + "integrity": "sha512-qzQZRBqkFsYyaSWXuEHc2WR9c0a0CXwiE5FWUvn7ZM+vdy1uZLfCunD38UzhuB7YN/J11ndbDBcTmOdxJo9Q7A==", + "license": "MIT", "dependencies": { - "undici-types": "~6.20.0" + "undici-types": "~7.16.0" } }, "node_modules/@types/node-fetch": { - "version": "2.6.11", - "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.11.tgz", - "integrity": "sha512-24xFj9R5+rfQJLRyM56qh+wnVSYhyXC2tkoBndtY0U+vubqNsYXGjufB2nn8Q6gt0LrARwL6UBtMCSVCwl4B1g==", + "version": "2.6.13", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.13.tgz", + "integrity": "sha512-QGpRVpzSaUs30JBSGPjOg4Uveu384erbHBoT1zeONvyCfwQxIkUshLAOqN/k9EjGviPRmWTTe6aH2qySWKTVSw==", + "license": "MIT", "dependencies": { "@types/node": "*", - "form-data": "^4.0.0" + "form-data": "^4.0.4" } }, "node_modules/@types/stream-buffers": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/@types/stream-buffers/-/stream-buffers-3.0.7.tgz", - "integrity": "sha512-azOCy05sXVXrO+qklf0c/B07H/oHaIuDDAiHPVwlk3A9Ek+ksHyTeMajLZl3r76FxpPpxem//4Te61G1iW3Giw==", + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/@types/stream-buffers/-/stream-buffers-3.0.8.tgz", + "integrity": "sha512-J+7VaHKNvlNPJPEJXX/fKa9DZtR/xPMwuIbe+yNOwp1YB+ApUOBv2aUpEoBJEi8nJgbgs1x8e73ttg0r1rSUdw==", + "license": "MIT", "dependencies": { "@types/node": "*" } }, - "node_modules/@types/tar": { - "version": "6.1.13", - "resolved": "https://registry.npmjs.org/@types/tar/-/tar-6.1.13.tgz", - "integrity": "sha512-IznnlmU5f4WcGTh2ltRu/Ijpmk8wiWXfF0VA4s+HPjHZgvFggk1YaIkbo5krX/zUCzWF8N/l4+W/LNxnvAJ8nw==", - "dependencies": { - "@types/node": "*", - "minipass": "^4.0.0" - } - }, - "node_modules/@types/tar/node_modules/minipass": { - "version": "4.2.8", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-4.2.8.tgz", - "integrity": "sha512-fNzuVyifolSLFL4NzpF+wEF4qrgqaaKX0haXPQEdQ7NKAN+WecoKMHV09YcuL/DHxrUsYQOK3MiuDf7Ip2OXfQ==", - "engines": { - "node": ">=8" - } - }, "node_modules/@types/unist": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz", "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==", - "dev": true - }, - "node_modules/@types/ws": { - "version": "8.5.13", - "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.13.tgz", - "integrity": "sha512-osM/gWBTPKgHV8XkTunnegTRIsvF6owmf5w+JtAfOw472dptdm0dlGv4xCt6GwQRcC2XVOvvRE/0bAoQcL2QkA==", - "dependencies": { - "@types/node": "*" - } + "dev": true, + "license": "MIT" }, - "node_modules/agent-base": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.3.tgz", - "integrity": "sha512-jRR5wdylq8CkOe6hei19GGZnxM6rBGwFl3Bg0YItGDimvjGtAvdZk4Pu6Cl4u4Igsws4a1fd1Vq3ezrhn4KmFw==", + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "8.46.3", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.46.3.tgz", + "integrity": "sha512-sbaQ27XBUopBkRiuY/P9sWGOWUW4rl8fDoHIUmLpZd8uldsTyB4/Zg6bWTegPoTLnKj9Hqgn3QD6cjPNB32Odw==", + "dev": true, "license": "MIT", + "dependencies": { + "@eslint-community/regexpp": "^4.10.0", + "@typescript-eslint/scope-manager": "8.46.3", + "@typescript-eslint/type-utils": "8.46.3", + "@typescript-eslint/utils": "8.46.3", + "@typescript-eslint/visitor-keys": "8.46.3", + "graphemer": "^1.4.0", + "ignore": "^7.0.0", + "natural-compare": "^1.4.0", + "ts-api-utils": "^2.1.0" + }, "engines": { - "node": ">= 14" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^8.46.3", + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" } }, - "node_modules/ansi-colors": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", - "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==", + "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": { + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz", + "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==", "dev": true, + "license": "MIT", "engines": { - "node": ">=6" - } - }, - "node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "engines": { - "node": ">=8" + "node": ">= 4" } }, - "node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "node_modules/@typescript-eslint/parser": { + "version": "8.46.3", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.46.3.tgz", + "integrity": "sha512-6m1I5RmHBGTnUGS113G04DMu3CpSdxCAU/UvtjNWL4Nuf3MW9tQhiJqRlHzChIkhy6kZSAQmc+I1bcGjE3yNKg==", "dev": true, + "license": "MIT", "dependencies": { - "color-convert": "^1.9.0" + "@typescript-eslint/scope-manager": "8.46.3", + "@typescript-eslint/types": "8.46.3", + "@typescript-eslint/typescript-estree": "8.46.3", + "@typescript-eslint/visitor-keys": "8.46.3", + "debug": "^4.3.4" }, "engines": { - "node": ">=4" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" } }, - "node_modules/anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "node_modules/@typescript-eslint/project-service": { + "version": "8.46.3", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.46.3.tgz", + "integrity": "sha512-Fz8yFXsp2wDFeUElO88S9n4w1I4CWDTXDqDr9gYvZgUpwXQqmZBr9+NTTql5R3J7+hrJZPdpiWaB9VNhAKYLuQ==", "dev": true, + "license": "MIT", "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" + "@typescript-eslint/tsconfig-utils": "^8.46.3", + "@typescript-eslint/types": "^8.46.3", + "debug": "^4.3.4" }, "engines": { - "node": ">= 8" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" } }, - "node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "node_modules/@typescript-eslint/scope-manager": { + "version": "8.46.3", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.46.3.tgz", + "integrity": "sha512-FCi7Y1zgrmxp3DfWfr+3m9ansUUFoy8dkEdeQSgA9gbm8DaHYvZCdkFRQrtKiedFf3Ha6VmoqoAaP68+i+22kg==", "dev": true, + "license": "MIT", "dependencies": { - "sprintf-js": "~1.0.2" - } - }, - "node_modules/assertion-error": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz", - "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==", - "dev": true, + "@typescript-eslint/types": "8.46.3", + "@typescript-eslint/visitor-keys": "8.46.3" + }, "engines": { - "node": ">=12" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" - }, - "node_modules/balanced-match": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" - }, - "node_modules/binary-extensions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", - "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", + "node_modules/@typescript-eslint/tsconfig-utils": { + "version": "8.46.3", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.46.3.tgz", + "integrity": "sha512-GLupljMniHNIROP0zE7nCcybptolcH8QZfXOpCfhQDAdwJ/ZTlcaBOYebSOZotpti/3HrHSw7D3PZm75gYFsOA==", "dev": true, + "license": "MIT", "engines": { - "node": ">=8" - } - }, - "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" } }, - "node_modules/braces": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", - "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "node_modules/@typescript-eslint/type-utils": { + "version": "8.46.3", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.46.3.tgz", + "integrity": "sha512-ZPCADbr+qfz3aiTTYNNkCbUt+cjNwI/5McyANNrFBpVxPt7GqpEYz5ZfdwuFyGUnJ9FdDXbGODUu6iRCI6XRXw==", "dev": true, "license": "MIT", "dependencies": { - "fill-range": "^7.1.1" + "@typescript-eslint/types": "8.46.3", + "@typescript-eslint/typescript-estree": "8.46.3", + "@typescript-eslint/utils": "8.46.3", + "debug": "^4.3.4", + "ts-api-utils": "^2.1.0" }, "engines": { - "node": ">=8" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" } }, - "node_modules/browser-stdout": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", - "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", - "dev": true - }, - "node_modules/builtin-modules": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", - "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", + "node_modules/@typescript-eslint/types": { + "version": "8.46.3", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.46.3.tgz", + "integrity": "sha512-G7Ok9WN/ggW7e/tOf8TQYMaxgID3Iujn231hfi0Pc7ZheztIJVpO44ekY00b7akqc6nZcvregk0Jpah3kep6hA==", "dev": true, + "license": "MIT", "engines": { - "node": ">=0.10.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/c8": { - "version": "10.1.3", - "resolved": "https://registry.npmjs.org/c8/-/c8-10.1.3.tgz", - "integrity": "sha512-LvcyrOAaOnrrlMpW22n690PUvxiq4Uf9WMhQwNJ9vgagkL/ph1+D4uvjvDA5XCbykrc0sx+ay6pVi9YZ1GnhyA==", + "node_modules/@typescript-eslint/typescript-estree": { + "version": "8.46.3", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.46.3.tgz", + "integrity": "sha512-f/NvtRjOm80BtNM5OQtlaBdM5BRFUv7gf381j9wygDNL+qOYSNOgtQ/DCndiYi80iIOv76QqaTmp4fa9hwI0OA==", "dev": true, + "license": "MIT", "dependencies": { - "@bcoe/v8-coverage": "^1.0.1", - "@istanbuljs/schema": "^0.1.3", - "find-up": "^5.0.0", - "foreground-child": "^3.1.1", - "istanbul-lib-coverage": "^3.2.0", - "istanbul-lib-report": "^3.0.1", - "istanbul-reports": "^3.1.6", - "test-exclude": "^7.0.1", - "v8-to-istanbul": "^9.0.0", - "yargs": "^17.7.2", - "yargs-parser": "^21.1.1" - }, - "bin": { - "c8": "bin/c8.js" + "@typescript-eslint/project-service": "8.46.3", + "@typescript-eslint/tsconfig-utils": "8.46.3", + "@typescript-eslint/types": "8.46.3", + "@typescript-eslint/visitor-keys": "8.46.3", + "debug": "^4.3.4", + "fast-glob": "^3.3.2", + "is-glob": "^4.0.3", + "minimatch": "^9.0.4", + "semver": "^7.6.0", + "ts-api-utils": "^2.1.0" }, "engines": { - "node": ">=18" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, - "peerDependencies": { - "monocart-coverage-reports": "^2" + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" }, - "peerDependenciesMeta": { - "monocart-coverage-reports": { - "optional": true - } + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" } }, - "node_modules/chai": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/chai/-/chai-5.1.2.tgz", - "integrity": "sha512-aGtmf24DW6MLHHG5gCx4zaI3uBq3KRtxeVs0DjFH6Z0rDNbsvTxFASFvdj79pxjxZ8/5u3PIiN3IwEIQkiiuPw==", + "node_modules/@typescript-eslint/utils": { + "version": "8.46.3", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.46.3.tgz", + "integrity": "sha512-VXw7qmdkucEx9WkmR3ld/u6VhRyKeiF1uxWwCy/iuNfokjJ7VhsgLSOTjsol8BunSw190zABzpwdNsze2Kpo4g==", "dev": true, + "license": "MIT", "dependencies": { - "assertion-error": "^2.0.1", - "check-error": "^2.1.1", - "deep-eql": "^5.0.1", - "loupe": "^3.1.0", - "pathval": "^2.0.0" + "@eslint-community/eslint-utils": "^4.7.0", + "@typescript-eslint/scope-manager": "8.46.3", + "@typescript-eslint/types": "8.46.3", + "@typescript-eslint/typescript-estree": "8.46.3" }, "engines": { - "node": ">=12" - } - }, - "node_modules/chai-as-promised": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/chai-as-promised/-/chai-as-promised-8.0.1.tgz", - "integrity": "sha512-OIEJtOL8xxJSH8JJWbIoRjybbzR52iFuDHuF8eb+nTPD6tgXLjRqsgnUGqQfFODxYvq5QdirT0pN9dZ0+Gz6rA==", - "dev": true, - "dependencies": { - "check-error": "^2.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "chai": ">= 2.1.2 < 6" + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" } }, - "node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "node_modules/@typescript-eslint/visitor-keys": { + "version": "8.46.3", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.46.3.tgz", + "integrity": "sha512-uk574k8IU0rOF/AjniX8qbLSGURJVUCeM5e4MIMKBFFi8weeiLrG1fyQejyLXQpRZbU/1BuQasleV/RfHC3hHg==", "dev": true, + "license": "MIT", "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" + "@typescript-eslint/types": "8.46.3", + "eslint-visitor-keys": "^4.2.1" }, "engines": { - "node": ">=4" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/chalk/node_modules/supports-color": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", - "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", + "node_modules/acorn": { + "version": "8.15.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", + "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", "dev": true, - "dependencies": { - "has-flag": "^3.0.0" + "license": "MIT", + "bin": { + "acorn": "bin/acorn" }, "engines": { - "node": ">=4" + "node": ">=0.4.0" } }, - "node_modules/check-error": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/check-error/-/check-error-2.1.1.tgz", - "integrity": "sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==", + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", "dev": true, + "license": "MIT", + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/agent-base": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.3.tgz", + "integrity": "sha512-jRR5wdylq8CkOe6hei19GGZnxM6rBGwFl3Bg0YItGDimvjGtAvdZk4Pu6Cl4u4Igsws4a1fd1Vq3ezrhn4KmFw==", + "license": "MIT", "engines": { - "node": ">= 16" + "node": ">= 14" } }, - "node_modules/chokidar": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", - "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], + "license": "MIT", "dependencies": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" }, - "engines": { - "node": ">= 8.10.0" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/chownr": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-3.0.0.tgz", - "integrity": "sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==", + "node_modules/ansi-regex": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", + "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", + "dev": true, + "license": "MIT", "engines": { - "node": ">=18" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" } }, - "node_modules/cliui": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", - "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, + "license": "MIT", "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^7.0.0" + "color-convert": "^2.0.1" }, "engines": { - "node": ">=12" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/color-convert": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.1.tgz", - "integrity": "sha512-mjGanIiwQJskCC18rPR6OmrZ6fm2Lc7PeGFYwCmy5J34wC6F1PzdGL6xeMfmgicfYcNLGuVFA3WzXtIDCQSZxQ==", + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "license": "Python-2.0" + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "license": "MIT" + }, + "node_modules/b4a": { + "version": "1.6.7", + "resolved": "https://registry.npmjs.org/b4a/-/b4a-1.6.7.tgz", + "integrity": "sha512-OnAYlL5b7LEkALw87fUVafQw5rVR9RjwGd4KUwNQ6DrrNmaVaUCgLipfVlzrPQ4tWOR9P0IXGNOx50jYCCdSJg==", + "license": "Apache-2.0" + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", "dev": true, - "dependencies": { - "color-name": "^1.1.1" - } + "license": "MIT" }, - "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + "node_modules/bare-events": { + "version": "2.5.4", + "resolved": "https://registry.npmjs.org/bare-events/-/bare-events-2.5.4.tgz", + "integrity": "sha512-+gFfDkR8pj4/TrWCGUGWmJIkBwuxPS5F+a5yWjOHQt2hHvNZd5YLzadjmDUtFmMM4y429bnKLa8bYBMHcYdnQA==", + "license": "Apache-2.0", + "optional": true }, - "node_modules/combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "node_modules/bare-fs": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/bare-fs/-/bare-fs-4.1.3.tgz", + "integrity": "sha512-OeEZYIg+2qepaWLyphaOXHAHKo3xkM8y3BeGAvHdMN8GNWvEAU1Yw6rYpGzu/wDDbKxgEjVeVDpgGhDzaeMpjg==", + "license": "Apache-2.0", + "optional": true, "dependencies": { - "delayed-stream": "~1.0.0" + "bare-events": "^2.5.4", + "bare-path": "^3.0.0", + "bare-stream": "^2.6.4" }, "engines": { - "node": ">= 0.8" + "bare": ">=1.16.0" + }, + "peerDependencies": { + "bare-buffer": "*" + }, + "peerDependenciesMeta": { + "bare-buffer": { + "optional": true + } } }, - "node_modules/commander": { - "version": "2.15.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.15.1.tgz", - "integrity": "sha512-VlfT9F3V0v+jr4yxPc5gg9s62/fIVWsd2Bk2iD435um1NlGMYdVCq+MjcXnhYq2icNOizHr1kK+5TI6H0Hy0ag==", - "dev": true - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" + "node_modules/bare-os": { + "version": "3.6.1", + "resolved": "https://registry.npmjs.org/bare-os/-/bare-os-3.6.1.tgz", + "integrity": "sha512-uaIjxokhFidJP+bmmvKSgiMzj2sV5GPHaZVAIktcxcpCyBFFWO+YlikVAdhmUo2vYFvFhOXIAlldqV29L8126g==", + "license": "Apache-2.0", + "optional": true, + "engines": { + "bare": ">=1.14.0" + } }, - "node_modules/convert-source-map": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", - "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", - "dev": true + "node_modules/bare-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/bare-path/-/bare-path-3.0.0.tgz", + "integrity": "sha512-tyfW2cQcB5NN8Saijrhqn0Zh7AnFNsnczRcuWODH0eYAXBsJ5gVxAUuNr7tsHSC6IZ77cA0SitzT+s47kot8Mw==", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "bare-os": "^3.0.1" + } }, - "node_modules/cross-spawn": { - "version": "7.0.5", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.5.tgz", - "integrity": "sha512-ZVJrKKYunU38/76t0RMOulHOnUcbU9GbpWKAOZ0mhjr7CX6FVrH+4FrAapSOekrgFQ3f/8gwMEuIft0aKq6Hug==", + "node_modules/bare-stream": { + "version": "2.6.5", + "resolved": "https://registry.npmjs.org/bare-stream/-/bare-stream-2.6.5.tgz", + "integrity": "sha512-jSmxKJNJmHySi6hC42zlZnq00rga4jjxcgNZjY9N5WlOe/iOoGRtdwGsHzQv2RlH2KOYMwGUXhf2zXd32BA9RA==", + "license": "Apache-2.0", + "optional": true, "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" + "streamx": "^2.21.0" }, - "engines": { - "node": ">= 8" + "peerDependencies": { + "bare-buffer": "*", + "bare-events": "*" + }, + "peerDependenciesMeta": { + "bare-buffer": { + "optional": true + }, + "bare-events": { + "optional": true + } } }, - "node_modules/cross-spawn/node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "license": "MIT", "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" + "balanced-match": "^1.0.0" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "dependencies": { + "fill-range": "^7.1.1" }, "engines": { - "node": ">= 8" + "node": ">=8" } }, - "node_modules/debug": { - "version": "4.3.5", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.5.tgz", - "integrity": "sha512-pt0bNEmneDIvdL1Xsd9oDQ/wrQRkXDT4AUWlNZNPKvW5x/jyO9VFXkJUP07vQ2upmw5PlaITaPKc31jK13V+jg==", + "node_modules/c8": { + "version": "10.1.3", + "resolved": "https://registry.npmjs.org/c8/-/c8-10.1.3.tgz", + "integrity": "sha512-LvcyrOAaOnrrlMpW22n690PUvxiq4Uf9WMhQwNJ9vgagkL/ph1+D4uvjvDA5XCbykrc0sx+ay6pVi9YZ1GnhyA==", "dev": true, + "license": "ISC", "dependencies": { - "ms": "2.1.2" + "@bcoe/v8-coverage": "^1.0.1", + "@istanbuljs/schema": "^0.1.3", + "find-up": "^5.0.0", + "foreground-child": "^3.1.1", + "istanbul-lib-coverage": "^3.2.0", + "istanbul-lib-report": "^3.0.1", + "istanbul-reports": "^3.1.6", + "test-exclude": "^7.0.1", + "v8-to-istanbul": "^9.0.0", + "yargs": "^17.7.2", + "yargs-parser": "^21.1.1" + }, + "bin": { + "c8": "bin/c8.js" }, "engines": { - "node": ">=6.0" + "node": ">=18" + }, + "peerDependencies": { + "monocart-coverage-reports": "^2" }, "peerDependenciesMeta": { - "supports-color": { + "monocart-coverage-reports": { "optional": true } } }, - "node_modules/debug/node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - }, - "node_modules/deep-eql": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-5.0.2.tgz", - "integrity": "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==", + "node_modules/cached-factory": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/cached-factory/-/cached-factory-0.1.0.tgz", + "integrity": "sha512-IGOSWu+NuED5UzCRmBeqQPZ8z7SkgrD/nN67W2iY1Qv83CVhevyMexkGclJ86saXisIqxoOnbeiTWvsCHRqJBw==", "dev": true, + "license": "MIT", "engines": { - "node": ">=6" + "node": ">=18" } }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, "engines": { - "node": ">=0.4.0" + "node": ">= 0.4" } }, - "node_modules/diff": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", - "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", "dev": true, + "license": "MIT", "engines": { - "node": ">=0.3.1" + "node": ">=6" } }, - "node_modules/eastasianwidth": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", - "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==" - }, - "node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "node_modules/entities": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", - "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, "engines": { - "node": ">=0.12" + "node": ">=10" }, "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/esbuild": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.23.1.tgz", - "integrity": "sha512-VVNz/9Sa0bs5SELtn3f7qhJCDPCF5oMEl5cO9/SSinpE9hbPVvxbd572HH5AKiP7WD8INO53GgfDDhRjkylHEg==", + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", "dev": true, - "hasInstallScript": true, - "license": "MIT", - "bin": { - "esbuild": "bin/esbuild" + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" }, "engines": { - "node": ">=18" - }, - "optionalDependencies": { - "@esbuild/aix-ppc64": "0.23.1", - "@esbuild/android-arm": "0.23.1", - "@esbuild/android-arm64": "0.23.1", - "@esbuild/android-x64": "0.23.1", - "@esbuild/darwin-arm64": "0.23.1", - "@esbuild/darwin-x64": "0.23.1", - "@esbuild/freebsd-arm64": "0.23.1", - "@esbuild/freebsd-x64": "0.23.1", - "@esbuild/linux-arm": "0.23.1", - "@esbuild/linux-arm64": "0.23.1", - "@esbuild/linux-ia32": "0.23.1", - "@esbuild/linux-loong64": "0.23.1", - "@esbuild/linux-mips64el": "0.23.1", - "@esbuild/linux-ppc64": "0.23.1", - "@esbuild/linux-riscv64": "0.23.1", - "@esbuild/linux-s390x": "0.23.1", - "@esbuild/linux-x64": "0.23.1", - "@esbuild/netbsd-x64": "0.23.1", - "@esbuild/openbsd-arm64": "0.23.1", - "@esbuild/openbsd-x64": "0.23.1", - "@esbuild/sunos-x64": "0.23.1", - "@esbuild/win32-arm64": "0.23.1", - "@esbuild/win32-ia32": "0.23.1", - "@esbuild/win32-x64": "0.23.1" + "node": ">=12" } }, - "node_modules/escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "node_modules/cliui/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, + "license": "MIT", "engines": { - "node": ">=6" + "node": ">=8" } }, - "node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "node_modules/cliui/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, + "license": "MIT" + }, + "node_modules/cliui/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, "engines": { - "node": ">=0.8.0" + "node": ">=8" } }, - "node_modules/esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "node_modules/cliui/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" }, "engines": { - "node": ">=4" + "node": ">=8" } }, - "node_modules/execa": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", - "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "node_modules/cliui/node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, "license": "MIT", "dependencies": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.0", - "human-signals": "^2.1.0", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.1", - "onetime": "^5.1.2", - "signal-exit": "^3.0.3", - "strip-final-newline": "^2.0.0" + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" }, "engines": { "node": ">=10" }, "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "node_modules/execa/node_modules/signal-exit": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", - "dev": true, - "license": "ISC" - }, - "node_modules/fill-range": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", - "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "license": "MIT", "dependencies": { - "to-regex-range": "^5.0.1" + "color-name": "~1.1.4" }, "engines": { - "node": ">=8" + "node": ">=7.0.0" } }, - "node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true, + "license": "MIT" + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "license": "MIT", "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" + "delayed-stream": "~1.0.0" }, "engines": { - "node": ">=10" + "node": ">= 0.8" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true, + "license": "MIT" + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true, + "license": "MIT" + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "engines": { + "node": ">= 8" + } + }, + "node_modules/debug": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", + "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } } }, - "node_modules/flat": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", - "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", "dev": true, - "bin": { - "flat": "cli.js" + "license": "MIT" + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "license": "MIT", + "engines": { + "node": ">=0.4.0" } }, - "node_modules/foreground-child": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.1.1.tgz", - "integrity": "sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==", + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "license": "MIT", "dependencies": { - "cross-spawn": "^7.0.0", - "signal-exit": "^4.0.1" + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" }, "engines": { - "node": ">=14" + "node": ">= 0.4" + } + }, + "node_modules/eastasianwidth": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", + "dev": true, + "license": "MIT" + }, + "node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true, + "license": "MIT" + }, + "node_modules/end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "license": "MIT", + "dependencies": { + "once": "^1.4.0" + } + }, + "node_modules/entities": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.12" }, "funding": { - "url": "https://github.com/sponsors/isaacs" + "url": "https://github.com/fb55/entities?sponsor=1" } }, - "node_modules/form-data": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.1.tgz", - "integrity": "sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw==", + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "license": "MIT", "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" + "es-errors": "^1.3.0" }, "engines": { - "node": ">= 6" + "node": ">= 0.4" } }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" + "node_modules/es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "node_modules/esbuild": { + "version": "0.25.2", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.2.tgz", + "integrity": "sha512-16854zccKPnC+toMywC+uKNeYSv+/eXkevRAfwRD/G9Cleq66m8XFIrigkbvauLLlCfDL45Q2cWegSg53gGBnQ==", "dev": true, "hasInstallScript": true, "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], + "bin": { + "esbuild": "bin/esbuild" + }, "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.25.2", + "@esbuild/android-arm": "0.25.2", + "@esbuild/android-arm64": "0.25.2", + "@esbuild/android-x64": "0.25.2", + "@esbuild/darwin-arm64": "0.25.2", + "@esbuild/darwin-x64": "0.25.2", + "@esbuild/freebsd-arm64": "0.25.2", + "@esbuild/freebsd-x64": "0.25.2", + "@esbuild/linux-arm": "0.25.2", + "@esbuild/linux-arm64": "0.25.2", + "@esbuild/linux-ia32": "0.25.2", + "@esbuild/linux-loong64": "0.25.2", + "@esbuild/linux-mips64el": "0.25.2", + "@esbuild/linux-ppc64": "0.25.2", + "@esbuild/linux-riscv64": "0.25.2", + "@esbuild/linux-s390x": "0.25.2", + "@esbuild/linux-x64": "0.25.2", + "@esbuild/netbsd-arm64": "0.25.2", + "@esbuild/netbsd-x64": "0.25.2", + "@esbuild/openbsd-arm64": "0.25.2", + "@esbuild/openbsd-x64": "0.25.2", + "@esbuild/sunos-x64": "0.25.2", + "@esbuild/win32-arm64": "0.25.2", + "@esbuild/win32-ia32": "0.25.2", + "@esbuild/win32-x64": "0.25.2" } }, - "node_modules/get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", "dev": true, + "license": "MIT", "engines": { - "node": "6.* || 8.* || >= 10.*" + "node": ">=6" } }, - "node_modules/get-stream": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", - "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", "dev": true, "license": "MIT", "engines": { @@ -1440,856 +1908,764 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/get-tsconfig": { - "version": "4.8.1", - "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.8.1.tgz", - "integrity": "sha512-k9PN+cFBmaLWtVz29SkUoqU5O0slLuHJXt/2P+tMVFT+phsSGXGkp9t3rQIqdz0e+06EHNGs3oM6ZX1s2zHxRg==", + "node_modules/eslint": { + "version": "9.39.1", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.1.tgz", + "integrity": "sha512-BhHmn2yNOFA9H9JmmIVKJmd288g9hrVRDkdoIgRCRuSySRUHH7r/DI6aAXW9T1WwUuY3DFgrcaqB+deURBLR5g==", "dev": true, "license": "MIT", "dependencies": { - "resolve-pkg-maps": "^1.0.0" + "@eslint-community/eslint-utils": "^4.8.0", + "@eslint-community/regexpp": "^4.12.1", + "@eslint/config-array": "^0.21.1", + "@eslint/config-helpers": "^0.4.2", + "@eslint/core": "^0.17.0", + "@eslint/eslintrc": "^3.3.1", + "@eslint/js": "9.39.1", + "@eslint/plugin-kit": "^0.4.1", + "@humanfs/node": "^0.16.6", + "@humanwhocodes/module-importer": "^1.0.1", + "@humanwhocodes/retry": "^0.4.2", + "@types/estree": "^1.0.6", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.6", + "debug": "^4.3.2", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^8.4.0", + "eslint-visitor-keys": "^4.2.1", + "espree": "^10.4.0", + "esquery": "^1.5.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^8.0.0", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { - "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "jiti": "*" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + } } }, - "node_modules/glob": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", - "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", + "node_modules/eslint-plugin-erasable-syntax-only": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-erasable-syntax-only/-/eslint-plugin-erasable-syntax-only-0.4.0.tgz", + "integrity": "sha512-7dx2gpfVn0FFEGukLqsF/izW4hGvSaySNOkcuSCO4q6Khh0ecOGYlRhW9hhDUtNryuKc+cXd1WFiQdpae3xzaQ==", + "dev": true, + "license": "MIT", "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "@typescript-eslint/utils": "^8.24.0", + "cached-factory": "^0.1.0" }, "engines": { - "node": "*" + "node": ">=20.18.0" }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "peerDependencies": { + "@typescript-eslint/parser": ">=8", + "eslint": ">=9", + "typescript": ">=5" } }, - "node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "node_modules/eslint-scope": { + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz", + "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { - "is-glob": "^4.0.1" + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" }, "engines": { - "node": ">= 6" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, - "node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "node_modules/eslint-visitor-keys": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", "dev": true, + "license": "Apache-2.0", "engines": { - "node": ">=4" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, - "node_modules/he": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", - "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", + "node_modules/eslint/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dev": true, - "bin": { - "he": "bin/he" - } - }, - "node_modules/hpagent": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/hpagent/-/hpagent-1.2.0.tgz", - "integrity": "sha512-A91dYTeIB6NoXG+PxTQpCCDDnfHsW9kc06Lvpu1TEe9gnd6ZFeiBoRO9JvzEv6xK7EX97/dUE8g/vBMTqTS3CA==", "license": "MIT", - "engines": { - "node": ">=14" + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" } }, - "node_modules/html-escaper": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", - "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", - "dev": true - }, - "node_modules/human-signals": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "node_modules/eslint/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "dev": true, - "license": "Apache-2.0", + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, "engines": { - "node": ">=10.17.0" + "node": "*" } }, - "node_modules/husky": { - "version": "9.1.7", - "resolved": "https://registry.npmjs.org/husky/-/husky-9.1.7.tgz", - "integrity": "sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==", + "node_modules/espree": { + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz", + "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==", "dev": true, - "bin": { - "husky": "bin.js" + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.15.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^4.2.1" }, "engines": { - "node": ">=18" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { - "url": "https://github.com/sponsors/typicode" + "url": "https://opencollective.com/eslint" } }, - "node_modules/ignore": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", - "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "node_modules/esquery": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", + "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", "dev": true, - "license": "MIT", + "license": "BSD-3-Clause", + "dependencies": { + "estraverse": "^5.1.0" + }, "engines": { - "node": ">= 4" + "node": ">=0.10" } }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "license": "BSD-2-Clause", "dependencies": { - "once": "^1.3.0", - "wrappy": "1" + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" } }, - "node_modules/inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" - }, - "node_modules/ip-address": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-9.0.5.tgz", - "integrity": "sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==", - "license": "MIT", - "dependencies": { - "jsbn": "1.1.0", - "sprintf-js": "^1.1.3" - }, - "engines": { - "node": ">= 12" - } - }, - "node_modules/ip-address/node_modules/sprintf-js": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz", - "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==", - "license": "BSD-3-Clause" - }, - "node_modules/is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", "dev": true, - "dependencies": { - "binary-extensions": "^2.0.0" - }, + "license": "BSD-2-Clause", "engines": { - "node": ">=8" + "node": ">=4.0" } }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", "dev": true, + "license": "BSD-2-Clause", "engines": { "node": ">=0.10.0" } }, - "node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "engines": { - "node": ">=8" - } + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true, + "license": "MIT" }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "node_modules/fast-fifo": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/fast-fifo/-/fast-fifo-1.3.2.tgz", + "integrity": "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==", + "license": "MIT" + }, + "node_modules/fast-glob": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", + "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", "dev": true, "dependencies": { - "is-extglob": "^2.1.1" + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.8" }, "engines": { - "node": ">=0.10.0" + "node": ">=8.6.0" } }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", "dev": true, - "license": "MIT", + "dependencies": { + "is-glob": "^4.0.1" + }, "engines": { - "node": ">=0.12.0" + "node": ">= 6" } }, - "node_modules/is-plain-obj": { + "node_modules/fast-json-stable-stringify": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", - "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-stream": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", - "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } + "license": "MIT" }, - "node_modules/is-unicode-supported": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", - "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=" - }, - "node_modules/isomorphic-ws": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/isomorphic-ws/-/isomorphic-ws-5.0.0.tgz", - "integrity": "sha512-muId7Zzn9ywDsyXgTIafTry2sV3nySZeUDe6YedVd1Hvuuep5AsIlqK+XefWpYTyJG5e503F2xIuT2lcU6rCSw==", - "peerDependencies": { - "ws": "*" - } + "license": "MIT" }, - "node_modules/istanbul-lib-coverage": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", - "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", + "node_modules/fastq": { + "version": "1.19.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz", + "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==", "dev": true, - "engines": { - "node": ">=8" + "dependencies": { + "reusify": "^1.0.4" } }, - "node_modules/istanbul-lib-report": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", - "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", + "node_modules/file-entry-cache": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", + "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", "dev": true, + "license": "MIT", "dependencies": { - "istanbul-lib-coverage": "^3.0.0", - "make-dir": "^4.0.0", - "supports-color": "^7.1.0" + "flat-cache": "^4.0.0" }, "engines": { - "node": ">=10" + "node": ">=16.0.0" } }, - "node_modules/istanbul-lib-report/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, "engines": { "node": ">=8" } }, - "node_modules/istanbul-lib-report/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", "dev": true, + "license": "MIT", "dependencies": { - "has-flag": "^4.0.0" + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" }, "engines": { - "node": ">=8" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/istanbul-reports": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.6.tgz", - "integrity": "sha512-TLgnMkKg3iTDsQ9PbPTdpfAK2DzjF9mqUG7RMgcQl8oFjad8ob4laGxv5XV5U9MAfx8D6tSJiUyuAwzLicaxlg==", + "node_modules/flat-cache": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", + "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", "dev": true, + "license": "MIT", "dependencies": { - "html-escaper": "^2.0.0", - "istanbul-lib-report": "^3.0.0" + "flatted": "^3.2.9", + "keyv": "^4.5.4" }, "engines": { - "node": ">=8" + "node": ">=16" } }, - "node_modules/jackspeak": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.6.tgz", - "integrity": "sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==", + "node_modules/flatted": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", + "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", + "dev": true, + "license": "ISC" + }, + "node_modules/foreground-child": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", + "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", + "dev": true, + "license": "ISC", "dependencies": { - "@isaacs/cliui": "^8.0.2" + "cross-spawn": "^7.0.6", + "signal-exit": "^4.0.1" }, "engines": { "node": ">=14" }, "funding": { "url": "https://github.com/sponsors/isaacs" - }, - "optionalDependencies": { - "@pkgjs/parseargs": "^0.11.0" } }, - "node_modules/jose": { - "version": "5.9.6", - "resolved": "https://registry.npmjs.org/jose/-/jose-5.9.6.tgz", - "integrity": "sha512-AMlnetc9+CV9asI19zHmrgS/WYsWUwCn2R7RzlbJWD7F9eWYUTGyBmU9o6PxngtLGOiDGPRu+Uc4fhKzbpteZQ==", - "funding": { - "url": "https://github.com/sponsors/panva" - } - }, - "node_modules/js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true - }, - "node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "node_modules/form-data": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.4.tgz", + "integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==", + "license": "MIT", "dependencies": { - "argparse": "^2.0.1" + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "es-set-tostringtag": "^2.1.0", + "hasown": "^2.0.2", + "mime-types": "^2.1.12" }, - "bin": { - "js-yaml": "bin/js-yaml.js" + "engines": { + "node": ">= 6" } }, - "node_modules/js-yaml/node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" - }, - "node_modules/jsbn": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz", - "integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==", - "license": "MIT" - }, - "node_modules/jsep": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/jsep/-/jsep-1.4.0.tgz", - "integrity": "sha512-B7qPcEVE3NVkmSJbaYxvv4cHkVW7DQsZz13pUMrfS8z8Q/BuShN+gcTXrUlPiGqM2/t/EEaI030bpxMqY8gMlw==", + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], "engines": { - "node": ">= 10.16.0" + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } }, - "node_modules/json-stringify-safe": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", - "dev": true - }, - "node_modules/jsonpath-plus": { - "version": "10.2.0", - "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-10.2.0.tgz", - "integrity": "sha512-T9V+8iNYKFL2n2rF+w02LBOT2JjDnTjioaNFrxRy0Bv1y/hNsqR/EBK7Ojy2ythRHwmz2cRIls+9JitQGZC/sw==", + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", "license": "MIT", - "dependencies": { - "@jsep-plugin/assignment": "^1.3.0", - "@jsep-plugin/regex": "^1.0.4", - "jsep": "^1.4.0" - }, - "bin": { - "jsonpath": "bin/jsonpath-cli.js", - "jsonpath-plus": "bin/jsonpath-cli.js" - }, - "engines": { - "node": ">=18.0.0" + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/linkify-it": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-5.0.0.tgz", - "integrity": "sha512-5aHCbzQRADcdP+ATqnDuhhJ/MRIqDkZX5pyjFHRRysS8vZ5AbqGEoFIb6pYHPZ+L/OC2Lc+xT8uHVVR5CAK/wQ==", + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", "dev": true, - "dependencies": { - "uc.micro": "^2.0.0" + "license": "ISC", + "engines": { + "node": "6.* || 8.* || >= 10.*" } }, - "node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "license": "MIT", "dependencies": { - "p-locate": "^5.0.0" + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" }, "engines": { - "node": ">=10" + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "dev": true - }, - "node_modules/log-symbols": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", - "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", - "dev": true, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "license": "MIT", "dependencies": { - "chalk": "^4.1.0", - "is-unicode-supported": "^0.1.0" + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">= 0.4" } }, - "node_modules/log-symbols/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/get-tsconfig": { + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.10.0.tgz", + "integrity": "sha512-kGzZ3LWWQcGIAmg6iWvXn0ei6WDtV26wzHRMwDSzmAbcXrTEXxHy6IehI6/4eT6VRKyMP1eF1VqwrVUmE/LR7A==", "dev": true, + "license": "MIT", "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" + "resolve-pkg-maps": "^1.0.0" }, "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" } }, - "node_modules/log-symbols/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/glob": { + "version": "10.4.5", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", + "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", "dev": true, + "license": "ISC", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "foreground-child": "^3.1.0", + "jackspeak": "^3.1.2", + "minimatch": "^9.0.4", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^1.11.1" }, - "engines": { - "node": ">=10" + "bin": { + "glob": "dist/esm/bin.mjs" }, "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/log-symbols/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", "dev": true, + "license": "ISC", "dependencies": { - "color-name": "~1.1.4" + "is-glob": "^4.0.3" }, "engines": { - "node": ">=7.0.0" + "node": ">=10.13.0" } }, - "node_modules/log-symbols/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "node_modules/glob/node_modules/minipass": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", "dev": true, + "license": "ISC", "engines": { - "node": ">=8" + "node": ">=16 || 14 >=14.17" } }, - "node_modules/log-symbols/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/globals": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", + "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, + "license": "MIT", "engines": { - "node": ">=8" + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/loupe": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/loupe/-/loupe-3.1.2.tgz", - "integrity": "sha512-23I4pFZHmAemUnz8WZXbYRSKYj801VDaNv9ETuMh7IrMc7VuVVSo+Z9iLE3ni30+U48iDWfi30d3twAXBYmnCg==", - "dev": true - }, - "node_modules/lru-cache": { - "version": "10.2.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.2.0.tgz", - "integrity": "sha512-2bIM8x+VAf6JT4bKAljS1qUWgMsqZRPGJS6FSahIMPVvctcNhyVp7AJu7quxOW9jwkryBReKZY5tY5JYv2n/7Q==", + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "license": "MIT", "engines": { - "node": "14 || >=16.14" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/lunr": { - "version": "2.3.9", - "resolved": "https://registry.npmjs.org/lunr/-/lunr-2.3.9.tgz", - "integrity": "sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow==", - "dev": true + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true, + "license": "MIT" }, - "node_modules/make-dir": { + "node_modules/has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", - "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, - "dependencies": { - "semver": "^7.5.3" - }, + "license": "MIT", "engines": { - "node": ">=10" + "node": ">=8" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/make-dir/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "license": "MIT", "dependencies": { - "yallist": "^4.0.0" + "has-symbols": "^1.0.3" }, "engines": { - "node": ">=10" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/make-dir/node_modules/semver": { - "version": "7.5.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", - "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", - "dev": true, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "license": "MIT", "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" + "function-bind": "^1.1.2" }, "engines": { - "node": ">=10" + "node": ">= 0.4" } }, - "node_modules/markdown-it": { - "version": "14.1.0", - "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-14.1.0.tgz", - "integrity": "sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==", - "dev": true, - "dependencies": { - "argparse": "^2.0.1", - "entities": "^4.4.0", - "linkify-it": "^5.0.0", - "mdurl": "^2.0.0", - "punycode.js": "^2.3.1", - "uc.micro": "^2.1.0" - }, - "bin": { - "markdown-it": "bin/markdown-it.mjs" + "node_modules/hpagent": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/hpagent/-/hpagent-1.2.0.tgz", + "integrity": "sha512-A91dYTeIB6NoXG+PxTQpCCDDnfHsW9kc06Lvpu1TEe9gnd6ZFeiBoRO9JvzEv6xK7EX97/dUE8g/vBMTqTS3CA==", + "license": "MIT", + "engines": { + "node": ">=14" } }, - "node_modules/markdown-it/node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, - "node_modules/mdurl": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-2.0.0.tgz", - "integrity": "sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==", - "dev": true - }, - "node_modules/merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "node_modules/html-escaper": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", "dev": true, "license": "MIT" }, - "node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dependencies": { - "mime-db": "1.52.0" + "node_modules/husky": { + "version": "9.1.7", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.1.7.tgz", + "integrity": "sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==", + "dev": true, + "license": "MIT", + "bin": { + "husky": "bin.js" }, "engines": { - "node": ">= 0.6" + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/typicode" } }, - "node_modules/mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", "dev": true, "license": "MIT", "engines": { - "node": ">=6" + "node": ">= 4" } }, - "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "node_modules/import-fresh": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", + "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", + "dev": true, + "license": "MIT", "dependencies": { - "brace-expansion": "^1.1.7" + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" }, "engines": { - "node": "*" - } - }, - "node_modules/minimist": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", - "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", - "dev": true, + "node": ">=6" + }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/minipass": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", - "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "license": "MIT", "engines": { - "node": ">=16 || 14 >=14.17" + "node": ">=0.8.19" } }, - "node_modules/minizlib": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-3.0.1.tgz", - "integrity": "sha512-umcy022ILvb5/3Djuu8LWeqUa8D68JaBzlttKeMWen48SjabqS3iY5w/vzeMzMUNhLDifyhbOwKDSznB1vvrwg==", + "node_modules/ip-address": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-9.0.5.tgz", + "integrity": "sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==", + "license": "MIT", "dependencies": { - "minipass": "^7.0.4", - "rimraf": "^5.0.5" + "jsbn": "1.1.0", + "sprintf-js": "^1.1.3" }, "engines": { - "node": ">= 18" + "node": ">= 12" } }, - "node_modules/minizlib/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dependencies": { - "balanced-match": "^1.0.0" + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" } }, - "node_modules/minizlib/node_modules/glob": { - "version": "10.3.12", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.12.tgz", - "integrity": "sha512-TCNv8vJ+xz4QiqTpfOJA7HvYv+tNIRHKfUWw/q+v2jdgN4ebz+KY9tGx5J4rHP0o84mNP+ApH66HRX8us3Khqg==", - "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^2.3.6", - "minimatch": "^9.0.1", - "minipass": "^7.0.4", - "path-scurry": "^1.10.2" - }, - "bin": { - "glob": "dist/esm/bin.mjs" - }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "license": "MIT", "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "node": ">=8" } }, - "node_modules/minizlib/node_modules/minimatch": { - "version": "9.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.4.tgz", - "integrity": "sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==", + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "license": "MIT", "dependencies": { - "brace-expansion": "^2.0.1" + "is-extglob": "^2.1.1" }, "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "node": ">=0.10.0" } }, - "node_modules/minizlib/node_modules/rimraf": { - "version": "5.0.5", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.5.tgz", - "integrity": "sha512-CqDakW+hMe/Bz202FPEymy68P+G50RfMQK+Qo5YUqc9SPipvbGjCGKd0RSKEelbsfQuw3g5NZDSrlZZAJurH1A==", - "dependencies": { - "glob": "^10.3.7" - }, - "bin": { - "rimraf": "dist/esm/bin.mjs" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/mkdirp": { - "version": "0.5.5", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", - "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", + "node_modules/is-node-process": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/is-node-process/-/is-node-process-1.2.0.tgz", + "integrity": "sha512-Vg4o6/fqPxIjtxgUH5QLJhwZ7gW5diGCVlXpuUfELC62CuxM1iHcRe51f2W1FDy04Ai4KJkagKjx3XaqyfRKXw==", "dev": true, - "dependencies": { - "minimist": "^1.2.5" - }, - "bin": { - "mkdirp": "bin/cmd.js" - } + "license": "MIT" }, - "node_modules/mocha": { - "version": "11.0.1", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-11.0.1.tgz", - "integrity": "sha512-+3GkODfsDG71KSCQhc4IekSW+ItCK/kiez1Z28ksWvYhKXV/syxMlerR/sC7whDp7IyreZ4YxceMLdTs5hQE8A==", + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "dev": true, - "dependencies": { - "ansi-colors": "^4.1.3", - "browser-stdout": "^1.3.1", - "chokidar": "^3.5.3", - "debug": "^4.3.5", - "diff": "^5.2.0", - "escape-string-regexp": "^4.0.0", - "find-up": "^5.0.0", - "glob": "^10.4.5", - "he": "^1.2.0", - "js-yaml": "^4.1.0", - "log-symbols": "^4.1.0", - "minimatch": "^5.1.6", - "ms": "^2.1.3", - "serialize-javascript": "^6.0.2", - "strip-json-comments": "^3.1.1", - "supports-color": "^8.1.1", - "workerpool": "^6.5.1", - "yargs": "^16.2.0", - "yargs-parser": "^20.2.9", - "yargs-unparser": "^2.0.0" - }, - "bin": { - "_mocha": "bin/_mocha", - "mocha": "bin/mocha.js" - }, "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/mocha/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" + "node": ">=0.12.0" } }, - "node_modules/mocha/node_modules/cliui": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", - "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", "dev": true, - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" - } + "license": "ISC" }, - "node_modules/mocha/node_modules/diff": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-5.2.0.tgz", - "integrity": "sha512-uIFDxqpRZGZ6ThOk84hEfqWoHx2devRFvpTZcTHur85vImfaxUbTW9Ryh4CpCuDnToOP1CEtXKIgytHBPVff5A==", - "dev": true, - "engines": { - "node": ">=0.3.1" + "node_modules/isomorphic-ws": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/isomorphic-ws/-/isomorphic-ws-5.0.0.tgz", + "integrity": "sha512-muId7Zzn9ywDsyXgTIafTry2sV3nySZeUDe6YedVd1Hvuuep5AsIlqK+XefWpYTyJG5e503F2xIuT2lcU6rCSw==", + "license": "MIT", + "peerDependencies": { + "ws": "*" } }, - "node_modules/mocha/node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "node_modules/istanbul-lib-coverage": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", + "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", "dev": true, + "license": "BSD-3-Clause", "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=8" } }, - "node_modules/mocha/node_modules/glob": { - "version": "10.4.5", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", - "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", + "node_modules/istanbul-lib-report": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", + "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^3.1.2", - "minimatch": "^9.0.4", - "minipass": "^7.1.2", - "package-json-from-dist": "^1.0.0", - "path-scurry": "^1.11.1" - }, - "bin": { - "glob": "dist/esm/bin.mjs" + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^4.0.0", + "supports-color": "^7.1.0" }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "engines": { + "node": ">=10" } }, - "node_modules/mocha/node_modules/glob/node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "node_modules/istanbul-reports": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.7.tgz", + "integrity": "sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { - "brace-expansion": "^2.0.1" + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" }, "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "node": ">=8" } }, - "node_modules/mocha/node_modules/jackspeak": { + "node_modules/jackspeak": { "version": "3.4.3", "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", "dev": true, + "license": "BlueOak-1.0.0", "dependencies": { "@isaacs/cliui": "^8.0.2" }, @@ -2300,191 +2676,130 @@ "@pkgjs/parseargs": "^0.11.0" } }, - "node_modules/mocha/node_modules/minimatch": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", - "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=10" + "node_modules/jose": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jose/-/jose-6.1.0.tgz", + "integrity": "sha512-TTQJyoEoKcC1lscpVDCSsVgYzUDg/0Bt3WE//WiTPK6uOCQC2KZS4MpugbMWt/zyjkopgZoXhZuCi00gLudfUA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/panva" } }, - "node_modules/mocha/node_modules/yargs": { - "version": "16.2.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", - "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", - "dev": true, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "license": "MIT", "dependencies": { - "cliui": "^7.0.2", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.0", - "y18n": "^5.0.5", - "yargs-parser": "^20.2.2" + "argparse": "^2.0.1" }, - "engines": { - "node": ">=10" + "bin": { + "js-yaml": "bin/js-yaml.js" } }, - "node_modules/mocha/node_modules/yargs-parser": { - "version": "20.2.9", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", - "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", - "dev": true, + "node_modules/jsbn": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz", + "integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==", + "license": "MIT" + }, + "node_modules/jsep": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/jsep/-/jsep-1.4.0.tgz", + "integrity": "sha512-B7qPcEVE3NVkmSJbaYxvv4cHkVW7DQsZz13pUMrfS8z8Q/BuShN+gcTXrUlPiGqM2/t/EEaI030bpxMqY8gMlw==", + "license": "MIT", "engines": { - "node": ">=10" + "node": ">= 10.16.0" } }, - "node_modules/mock-fs": { - "version": "5.4.1", - "resolved": "https://registry.npmjs.org/mock-fs/-/mock-fs-5.4.1.tgz", - "integrity": "sha512-sz/Q8K1gXXXHR+qr0GZg2ysxCRr323kuN10O7CtQjraJsFDJ4SJ+0I5MzALz7aRp9lHk8Cc/YdsT95h9Ka1aFw==", + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", "dev": true, - "engines": { - "node": ">=12.0.0" - } + "license": "MIT" }, - "node_modules/mri": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz", - "integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==", + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } + "license": "MIT" }, - "node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true, + "license": "MIT" }, - "node_modules/nock": { - "version": "13.5.6", - "resolved": "https://registry.npmjs.org/nock/-/nock-13.5.6.tgz", - "integrity": "sha512-o2zOYiCpzRqSzPj0Zt/dQ/DqZeYoaQ7TUonc/xUPjCGl9WeHpNbxgVvOquXYAaJzI0M9BXV3HTzG0p8IUAbBTQ==", + "node_modules/json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==", "dev": true, - "dependencies": { - "debug": "^4.1.0", - "json-stringify-safe": "^5.0.1", - "propagate": "^2.0.0" - }, - "engines": { - "node": ">= 10.13" - } + "license": "ISC" }, - "node_modules/node-fetch": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.9.tgz", - "integrity": "sha512-DJm/CJkZkRjKKj4Zi4BsKVZh3ValV5IR5s7LVZnW+6YMh0W1BfNA8XSs6DLMGYlId5F3KnA70uu2qepcR08Qqg==", + "node_modules/jsonpath-plus": { + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-10.3.0.tgz", + "integrity": "sha512-8TNmfeTCk2Le33A3vRRwtuworG/L5RrgMvdjhKZxvyShO+mBu2fP50OWUjRLNtvw344DdDarFh9buFAZs5ujeA==", + "license": "MIT", "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" + "@jsep-plugin/assignment": "^1.3.0", + "@jsep-plugin/regex": "^1.0.4", + "jsep": "^1.4.0" }, - "peerDependencies": { - "encoding": "^0.1.0" + "bin": { + "jsonpath": "bin/jsonpath-cli.js", + "jsonpath-plus": "bin/jsonpath-cli.js" }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, - "node_modules/normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true, "engines": { - "node": ">=0.10.0" + "node": ">=18.0.0" } }, - "node_modules/npm-run-path": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", - "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", "dev": true, "license": "MIT", "dependencies": { - "path-key": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/oauth4webapi": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/oauth4webapi/-/oauth4webapi-3.1.4.tgz", - "integrity": "sha512-eVfN3nZNbok2s/ROifO0UAc5G8nRoLSbrcKJ09OqmucgnhXEfdIQOR4gq1eJH1rN3gV7rNw62bDEgftsgFtBEg==", - "funding": { - "url": "https://github.com/sponsors/panva" - } - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dependencies": { - "wrappy": "1" + "json-buffer": "3.0.1" } }, - "node_modules/onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", "dev": true, "license": "MIT", "dependencies": { - "mimic-fn": "^2.1.0" + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" }, "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">= 0.8.0" } }, - "node_modules/openid-client": { - "version": "6.1.7", - "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-6.1.7.tgz", - "integrity": "sha512-JfY/KvQgOutmG2P+oVNKInE7zIh+im1MQOaO7g5CtNnTWMociA563WweiEMKfR9ry9XG3K2HGvj9wEqhCQkPMg==", - "dependencies": { - "jose": "^5.9.6", - "oauth4webapi": "^3.1.4" - }, - "funding": { - "url": "https://github.com/sponsors/panva" - } - }, - "node_modules/p-locate": { + "node_modules/linkify-it": { "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-5.0.0.tgz", + "integrity": "sha512-5aHCbzQRADcdP+ATqnDuhhJ/MRIqDkZX5pyjFHRRysS8vZ5AbqGEoFIb6pYHPZ+L/OC2Lc+xT8uHVVR5CAK/wQ==", "dev": true, + "license": "MIT", "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "uc.micro": "^2.0.0" } }, - "node_modules/p-locate/node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", "dev": true, + "license": "MIT", "dependencies": { - "yocto-queue": "^0.1.0" + "p-locate": "^5.0.0" }, "engines": { "node": ">=10" @@ -2493,3404 +2808,1272 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/package-json-from-dist": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", - "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", - "dev": true - }, - "node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true - }, - "node_modules/path-scurry": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", - "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", - "dependencies": { - "lru-cache": "^10.2.0", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" - }, - "engines": { - "node": ">=16 || 14 >=14.18" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } + "license": "MIT" }, - "node_modules/pathval": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/pathval/-/pathval-2.0.0.tgz", - "integrity": "sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==", + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", "dev": true, - "engines": { - "node": ">= 14.16" - } + "license": "MIT" }, - "node_modules/picocolors": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", - "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "node_modules/lru-cache": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", "dev": true, "license": "ISC" }, - "node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "node_modules/lunr": { + "version": "2.3.9", + "resolved": "https://registry.npmjs.org/lunr/-/lunr-2.3.9.tgz", + "integrity": "sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow==", "dev": true, - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } + "license": "MIT" }, - "node_modules/prettier": { - "version": "3.4.2", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.4.2.tgz", - "integrity": "sha512-e9MewbtFo+Fevyuxn/4rrcDAaq0IYxPGLvObpQjiZBMAzB9IGmzlnG9RZy3FFas+eBMu2vA0CszMeduow5dIuQ==", + "node_modules/make-dir": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", + "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", "dev": true, - "bin": { - "prettier": "bin/prettier.cjs" + "license": "MIT", + "dependencies": { + "semver": "^7.5.3" }, "engines": { - "node": ">=14" + "node": ">=10" }, "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/pretty-quick": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/pretty-quick/-/pretty-quick-4.0.0.tgz", - "integrity": "sha512-M+2MmeufXb/M7Xw3Afh1gxcYpj+sK0AxEfnfF958ktFeAyi5MsKY5brymVURQLgPLV1QaF5P4pb2oFJ54H3yzQ==", + "node_modules/markdown-it": { + "version": "14.1.0", + "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-14.1.0.tgz", + "integrity": "sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==", "dev": true, "license": "MIT", "dependencies": { - "execa": "^5.1.1", - "find-up": "^5.0.0", - "ignore": "^5.3.0", - "mri": "^1.2.0", - "picocolors": "^1.0.0", - "picomatch": "^3.0.1", - "tslib": "^2.6.2" + "argparse": "^2.0.1", + "entities": "^4.4.0", + "linkify-it": "^5.0.0", + "mdurl": "^2.0.0", + "punycode.js": "^2.3.1", + "uc.micro": "^2.1.0" }, "bin": { - "pretty-quick": "lib/cli.mjs" - }, - "engines": { - "node": ">=14" - }, - "peerDependencies": { - "prettier": "^3.0.0" + "markdown-it": "bin/markdown-it.mjs" } }, - "node_modules/pretty-quick/node_modules/picomatch": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-3.0.1.tgz", - "integrity": "sha512-I3EurrIQMlRc9IaAZnqRR044Phh2DXY+55o7uJ0V+hYZAcQYSuFWsc9q5PvyDHUSCe1Qxn/iBz+78s86zWnGag==", - "dev": true, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", "license": "MIT", "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" + "node": ">= 0.4" } }, - "node_modules/propagate": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/propagate/-/propagate-2.0.1.tgz", - "integrity": "sha512-vGrhOavPSTz4QVNuBNdcNXePNdNMaO1xj9yBeH1ScQPjk/rhg9sSlCXPhMkFuaNNW/syTvYqsnbIJxMBfRbbag==", + "node_modules/mdurl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-2.0.0.tgz", + "integrity": "sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==", "dev": true, - "engines": { - "node": ">= 8" - } - }, - "node_modules/punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "engines": { - "node": ">=6" - } + "license": "MIT" }, - "node_modules/punycode.js": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode.js/-/punycode.js-2.3.1.tgz", - "integrity": "sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==", + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", "dev": true, "engines": { - "node": ">=6" - } - }, - "node_modules/randombytes": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", - "dev": true, - "dependencies": { - "safe-buffer": "^5.1.0" + "node": ">= 8" } }, - "node_modules/readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", "dev": true, "dependencies": { - "picomatch": "^2.2.1" + "braces": "^3.0.3", + "picomatch": "^2.3.1" }, "engines": { - "node": ">=8.10.0" + "node": ">=8.6" } }, - "node_modules/require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", - "dev": true, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "license": "MIT", "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/resolve": { - "version": "1.7.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.7.1.tgz", - "integrity": "sha512-c7rwLofp8g1U+h1KNyHL/jicrKg1Ek4q+Lr33AL65uZTinUZHe30D5HlyN5V9NW0JX1D5dXQ4jqW5l7Sy/kGfw==", - "dev": true, - "dependencies": { - "path-parse": "^1.0.5" + "node": ">= 0.6" } }, - "node_modules/resolve-pkg-maps": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", - "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", - "dev": true, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", "license": "MIT", - "funding": { - "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" - } - }, - "node_modules/rfc4648": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/rfc4648/-/rfc4648-1.5.4.tgz", - "integrity": "sha512-rRg/6Lb+IGfJqO05HZkN50UtY7K/JhxJag1kP23+zyMfrvoB0B7RWv06MbOzoc79RgCdNTiUaNsTT1AJZ7Z+cg==" - }, - "node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" + "mime-db": "1.52.0" }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/semver": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", - "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", - "dev": true, - "bin": { - "semver": "bin/semver" + "engines": { + "node": ">= 0.6" } }, - "node_modules/serialize-javascript": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz", - "integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==", + "node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", "dev": true, + "license": "ISC", "dependencies": { - "randombytes": "^2.1.0" - } - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dependencies": { - "shebang-regex": "^3.0.0" + "brace-expansion": "^2.0.1" }, "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "engines": { - "node": ">=8" - } - }, - "node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "engines": { - "node": ">=14" + "node": ">=16 || 14 >=14.17" }, "funding": { "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/smart-buffer": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", - "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", - "license": "MIT", - "engines": { - "node": ">= 6.0.0", - "npm": ">= 3.0.0" - } - }, - "node_modules/socks": { - "version": "2.8.3", - "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.3.tgz", - "integrity": "sha512-l5x7VUUWbjVFbafGLxPWkYsHIhEvmF85tbIeFZWc8ZPtoMyybuEhL7Jye/ooC4/d48FgOjSJXgsF/AJPYCW8Zw==", + "node_modules/mock-fs": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/mock-fs/-/mock-fs-5.5.0.tgz", + "integrity": "sha512-d/P1M/RacgM3dB0sJ8rjeRNXxtapkPCUnMGmIN0ixJ16F/E4GUZCvWcSGfWGz8eaXYvn1s9baUwNjI4LOPEjiA==", + "dev": true, "license": "MIT", - "dependencies": { - "ip-address": "^9.0.5", - "smart-buffer": "^4.2.0" - }, "engines": { - "node": ">= 10.0.0", - "npm": ">= 3.0.0" + "node": ">=12.0.0" } }, - "node_modules/socks-proxy-agent": { - "version": "8.0.5", - "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-8.0.5.tgz", - "integrity": "sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw==", - "license": "MIT", - "dependencies": { - "agent-base": "^7.1.2", - "debug": "^4.3.4", - "socks": "^2.8.3" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "dev": true, - "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, - "node_modules/source-map-support/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true - }, - "node_modules/stream-buffers": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/stream-buffers/-/stream-buffers-3.0.3.tgz", - "integrity": "sha512-pqMqwQCso0PBJt2PQmDO0cFj0lyqmiwOMiMSkVtRokl7e+ZTRYgDHKnuZNbqjiJXgsg4nuqtD/zxuo9KqTp0Yw==", - "engines": { - "node": ">= 0.10.0" - } - }, - "node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/string-width-cjs": { - "name": "string-width", - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi-cjs": { - "name": "strip-ansi", - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-final-newline": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", - "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, - "node_modules/supports-color/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/tar": { - "version": "7.4.3", - "resolved": "https://registry.npmjs.org/tar/-/tar-7.4.3.tgz", - "integrity": "sha512-5S7Va8hKfV7W5U6g3aYxXmlPoZVAwUMy9AOKyF2fVuZa2UD3qZjg578OrLRt8PcNN1PleVaL/5/yYATNL0ICUw==", - "dependencies": { - "@isaacs/fs-minipass": "^4.0.0", - "chownr": "^3.0.0", - "minipass": "^7.1.2", - "minizlib": "^3.0.1", - "mkdirp": "^3.0.1", - "yallist": "^5.0.0" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/tar/node_modules/mkdirp": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz", - "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==", - "bin": { - "mkdirp": "dist/cjs/src/bin.js" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/tar/node_modules/yallist": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-5.0.0.tgz", - "integrity": "sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==", - "engines": { - "node": ">=18" - } - }, - "node_modules/test-exclude": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-7.0.1.tgz", - "integrity": "sha512-pFYqmTw68LXVjeWJMST4+borgQP2AyMNbg1BpZh9LbyhUeNkeaPF9gzfPGUAnSMV3qPYdWUwDIjjCLiSDOl7vg==", - "dev": true, - "dependencies": { - "@istanbuljs/schema": "^0.1.2", - "glob": "^10.4.1", - "minimatch": "^9.0.4" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/test-exclude/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/test-exclude/node_modules/glob": { - "version": "10.4.1", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.1.tgz", - "integrity": "sha512-2jelhlq3E4ho74ZyVLN03oKdAZVUa6UDZzFLVH1H7dnoax+y9qyaq8zBkfDIggjniU19z0wU18y16jMB2eyVIw==", - "dev": true, - "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^3.1.2", - "minimatch": "^9.0.4", - "minipass": "^7.1.2", - "path-scurry": "^1.11.1" - }, - "bin": { - "glob": "dist/esm/bin.mjs" - }, - "engines": { - "node": ">=16 || 14 >=14.18" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/test-exclude/node_modules/jackspeak": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.0.tgz", - "integrity": "sha512-JVYhQnN59LVPFCEcVa2C3CrEKYacvjRfqIQl+h8oi91aLYQVWRYbxjPcv1bUiUy/kLmQaANrYfNMCO3kuEDHfw==", - "dev": true, - "dependencies": { - "@isaacs/cliui": "^8.0.2" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - }, - "optionalDependencies": { - "@pkgjs/parseargs": "^0.11.0" - } - }, - "node_modules/test-exclude/node_modules/minimatch": { - "version": "9.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.4.tgz", - "integrity": "sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/tmp": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.1.tgz", - "integrity": "sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ==", - "dependencies": { - "rimraf": "^3.0.0" - }, - "engines": { - "node": ">=8.17.0" - } - }, - "node_modules/tmp-promise": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/tmp-promise/-/tmp-promise-3.0.3.tgz", - "integrity": "sha512-RwM7MoPojPxsOBYnyd2hy0bxtIlVrihNs9pj5SUvY8Zz1sQcQG2tG1hSr8PDxfgEB8RNKDhqbIlroIarSNDNsQ==", - "dependencies": { - "tmp": "^0.2.0" - } - }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/tr46": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-4.1.1.tgz", - "integrity": "sha512-2lv/66T7e5yNyhAAC4NaKe5nVavzuGJQVVtRYLyQ2OI8tsJ61PMLlelehb0wi2Hx6+hT/OJUWZcw8MjlSRnxvw==", - "dependencies": { - "punycode": "^2.3.0" - }, - "engines": { - "node": ">=14" - } - }, - "node_modules/ts-mockito": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/ts-mockito/-/ts-mockito-2.6.1.tgz", - "integrity": "sha512-qU9m/oEBQrKq5hwfbJ7MgmVN5Gu6lFnIGWvpxSjrqq6YYEVv+RwVFWySbZMBgazsWqv6ctAyVBpo9TmAxnOEKw==", - "dev": true, - "dependencies": { - "lodash": "^4.17.5" - } - }, - "node_modules/tslib": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", - "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", - "dev": true - }, - "node_modules/tslint": { - "version": "6.1.3", - "resolved": "https://registry.npmjs.org/tslint/-/tslint-6.1.3.tgz", - "integrity": "sha512-IbR4nkT96EQOvKE2PW/djGz8iGNeJ4rF2mBfiYaR/nvUWYKJhLwimoJKgjIFEIDibBtOevj7BqCRL4oHeWWUCg==", - "deprecated": "TSLint has been deprecated in favor of ESLint. Please see https://github.com/palantir/tslint/issues/4534 for more information.", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.0.0", - "builtin-modules": "^1.1.1", - "chalk": "^2.3.0", - "commander": "^2.12.1", - "diff": "^4.0.1", - "glob": "^7.1.1", - "js-yaml": "^3.13.1", - "minimatch": "^3.0.4", - "mkdirp": "^0.5.3", - "resolve": "^1.3.2", - "semver": "^5.3.0", - "tslib": "^1.13.0", - "tsutils": "^2.29.0" - }, - "bin": { - "tslint": "bin/tslint" - }, - "engines": { - "node": ">=4.8.0" - }, - "peerDependencies": { - "typescript": ">=2.3.0-dev || >=2.4.0-dev || >=2.5.0-dev || >=2.6.0-dev || >=2.7.0-dev || >=2.8.0-dev || >=2.9.0-dev || >=3.0.0-dev || >= 3.1.0-dev || >= 3.2.0-dev || >= 4.0.0-dev" - } - }, - "node_modules/tslint/node_modules/js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "dev": true, - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/tslint/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - }, - "node_modules/tsutils": { - "version": "2.29.0", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", - "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", - "dev": true, - "dependencies": { - "tslib": "^1.8.1" - }, - "peerDependencies": { - "typescript": ">=2.1.0 || >=2.1.0-dev || >=2.2.0-dev || >=2.3.0-dev || >=2.4.0-dev || >=2.5.0-dev || >=2.6.0-dev || >=2.7.0-dev || >=2.8.0-dev || >=2.9.0-dev || >= 3.0.0-dev || >= 3.1.0-dev" - } - }, - "node_modules/tsutils/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - }, - "node_modules/tsx": { - "version": "4.19.2", - "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.19.2.tgz", - "integrity": "sha512-pOUl6Vo2LUq/bSa8S5q7b91cgNSjctn9ugq/+Mvow99qW6x/UZYwzxy/3NmqoT66eHYfCVvFvACC58UBPFf28g==", - "dev": true, - "dependencies": { - "esbuild": "~0.23.0", - "get-tsconfig": "^4.7.5" - }, - "bin": { - "tsx": "dist/cli.mjs" - }, - "engines": { - "node": ">=18.0.0" - }, - "optionalDependencies": { - "fsevents": "~2.3.3" - } - }, - "node_modules/typedoc": { - "version": "0.27.5", - "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.27.5.tgz", - "integrity": "sha512-x+fhKJtTg4ozXwKayh/ek4wxZQI/+2hmZUdO2i2NGDBRUflDble70z+ewHod3d4gRpXSO6fnlnjbDTnJk7HlkQ==", - "dev": true, - "dependencies": { - "@gerrit0/mini-shiki": "^1.24.0", - "lunr": "^2.3.9", - "markdown-it": "^14.1.0", - "minimatch": "^9.0.5", - "yaml": "^2.6.1" - }, - "bin": { - "typedoc": "bin/typedoc" - }, - "engines": { - "node": ">= 18" - }, - "peerDependencies": { - "typescript": "5.0.x || 5.1.x || 5.2.x || 5.3.x || 5.4.x || 5.5.x || 5.6.x || 5.7.x" - } - }, - "node_modules/typedoc/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/typedoc/node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/typescript": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.2.tgz", - "integrity": "sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==", - "dev": true, - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "node_modules/uc.micro": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-2.1.0.tgz", - "integrity": "sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==", - "dev": true - }, - "node_modules/undici-types": { - "version": "6.20.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", - "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==" - }, - "node_modules/v8-to-istanbul": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.2.0.tgz", - "integrity": "sha512-/EH/sDgxU2eGxajKdwLCDmQ4FWq+kpi3uCmBGpw1xJtnAxEjlD8j8PEiGWpCIMIs3ciNAgH0d3TTJiUkYzyZjA==", - "dev": true, - "dependencies": { - "@jridgewell/trace-mapping": "^0.3.12", - "@types/istanbul-lib-coverage": "^2.0.1", - "convert-source-map": "^2.0.0" - }, - "engines": { - "node": ">=10.12.0" - } - }, - "node_modules/webidl-conversions": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", - "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==", - "engines": { - "node": ">=12" - } - }, - "node_modules/whatwg-url": { - "version": "12.0.1", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-12.0.1.tgz", - "integrity": "sha512-Ed/LrqB8EPlGxjS+TrsXcpUond1mhccS3pchLhzSgPCnTimUCKj3IZE75pAs5m6heB2U2TMerKFUXheyHY+VDQ==", - "dependencies": { - "tr46": "^4.1.1", - "webidl-conversions": "^7.0.0" - }, - "engines": { - "node": ">=14" - } - }, - "node_modules/workerpool": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.5.1.tgz", - "integrity": "sha512-Fs4dNYcsdpYSAfVxhnl1L5zTksjvOJxtC5hzMNl+1t9B8hTJTdKDyZ5ju7ztgPy+ft9tBFXoOlDNiOT9WUXZlA==", - "dev": true - }, - "node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrap-ansi-cjs": { - "name": "wrap-ansi", - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/wrap-ansi/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/wrap-ansi/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" - }, - "node_modules/ws": { - "version": "8.18.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz", - "integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==", - "license": "MIT", - "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": ">=5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, - "node_modules/y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "node_modules/yaml": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.6.1.tgz", - "integrity": "sha512-7r0XPzioN/Q9kXBro/XPnA6kznR73DHq+GXh5ON7ZozRO6aMjbmiBuKste2wslTFkC5d1dw0GooOCepZXJ2SAg==", - "dev": true, - "bin": { - "yaml": "bin.mjs" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/yargs": { - "version": "17.7.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", - "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", - "dev": true, - "dependencies": { - "cliui": "^8.0.1", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.3", - "y18n": "^5.0.5", - "yargs-parser": "^21.1.1" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/yargs-parser": { - "version": "21.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", - "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", - "dev": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/yargs-unparser": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz", - "integrity": "sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==", - "dev": true, - "dependencies": { - "camelcase": "^6.0.0", - "decamelize": "^4.0.0", - "flat": "^5.0.2", - "is-plain-obj": "^2.1.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/yargs-unparser/node_modules/camelcase": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/yargs-unparser/node_modules/decamelize": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz", - "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - } - }, - "dependencies": { - "@babel/code-frame": { - "version": "7.22.13", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.13.tgz", - "integrity": "sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==", - "dev": true, - "requires": { - "@babel/highlight": "^7.22.13", - "chalk": "^2.4.2" - } - }, - "@babel/helper-validator-identifier": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", - "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", - "dev": true - }, - "@babel/highlight": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.20.tgz", - "integrity": "sha512-dkdMCN3py0+ksCgYmGG8jKeGA/8Tk+gJwSYYlFGxG5lmhfKNoAy004YpLxpS1W2J8m/EK2Ew+yOs9pVRwO89mg==", - "dev": true, - "requires": { - "@babel/helper-validator-identifier": "^7.22.20", - "chalk": "^2.4.2", - "js-tokens": "^4.0.0" - } - }, - "@bcoe/v8-coverage": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-1.0.1.tgz", - "integrity": "sha512-W+a0/JpU28AqH4IKtwUPcEUnUyXMDLALcn5/JLczGGT9fHE2sIby/xP/oQnx3nxkForzgzPy201RAKcB4xPAFQ==", - "dev": true - }, - "@esbuild/aix-ppc64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.23.1.tgz", - "integrity": "sha512-6VhYk1diRqrhBAqpJEdjASR/+WVRtfjpqKuNw11cLiaWpAT/Uu+nokB+UJnevzy/P9C/ty6AOe0dwueMrGh/iQ==", - "dev": true, - "optional": true - }, - "@esbuild/android-arm": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.23.1.tgz", - "integrity": "sha512-uz6/tEy2IFm9RYOyvKl88zdzZfwEfKZmnX9Cj1BHjeSGNuGLuMD1kR8y5bteYmwqKm1tj8m4cb/aKEorr6fHWQ==", - "dev": true, - "optional": true - }, - "@esbuild/android-arm64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.23.1.tgz", - "integrity": "sha512-xw50ipykXcLstLeWH7WRdQuysJqejuAGPd30vd1i5zSyKK3WE+ijzHmLKxdiCMtH1pHz78rOg0BKSYOSB/2Khw==", - "dev": true, - "optional": true - }, - "@esbuild/android-x64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.23.1.tgz", - "integrity": "sha512-nlN9B69St9BwUoB+jkyU090bru8L0NA3yFvAd7k8dNsVH8bi9a8cUAUSEcEEgTp2z3dbEDGJGfP6VUnkQnlReg==", - "dev": true, - "optional": true - }, - "@esbuild/darwin-arm64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.23.1.tgz", - "integrity": "sha512-YsS2e3Wtgnw7Wq53XXBLcV6JhRsEq8hkfg91ESVadIrzr9wO6jJDMZnCQbHm1Guc5t/CdDiFSSfWP58FNuvT3Q==", - "dev": true, - "optional": true - }, - "@esbuild/darwin-x64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.23.1.tgz", - "integrity": "sha512-aClqdgTDVPSEGgoCS8QDG37Gu8yc9lTHNAQlsztQ6ENetKEO//b8y31MMu2ZaPbn4kVsIABzVLXYLhCGekGDqw==", - "dev": true, - "optional": true - }, - "@esbuild/freebsd-arm64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.23.1.tgz", - "integrity": "sha512-h1k6yS8/pN/NHlMl5+v4XPfikhJulk4G+tKGFIOwURBSFzE8bixw1ebjluLOjfwtLqY0kewfjLSrO6tN2MgIhA==", - "dev": true, - "optional": true - }, - "@esbuild/freebsd-x64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.23.1.tgz", - "integrity": "sha512-lK1eJeyk1ZX8UklqFd/3A60UuZ/6UVfGT2LuGo3Wp4/z7eRTRYY+0xOu2kpClP+vMTi9wKOfXi2vjUpO1Ro76g==", - "dev": true, - "optional": true - }, - "@esbuild/linux-arm": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.23.1.tgz", - "integrity": "sha512-CXXkzgn+dXAPs3WBwE+Kvnrf4WECwBdfjfeYHpMeVxWE0EceB6vhWGShs6wi0IYEqMSIzdOF1XjQ/Mkm5d7ZdQ==", - "dev": true, - "optional": true - }, - "@esbuild/linux-arm64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.23.1.tgz", - "integrity": "sha512-/93bf2yxencYDnItMYV/v116zff6UyTjo4EtEQjUBeGiVpMmffDNUyD9UN2zV+V3LRV3/on4xdZ26NKzn6754g==", - "dev": true, - "optional": true - }, - "@esbuild/linux-ia32": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.23.1.tgz", - "integrity": "sha512-VTN4EuOHwXEkXzX5nTvVY4s7E/Krz7COC8xkftbbKRYAl96vPiUssGkeMELQMOnLOJ8k3BY1+ZY52tttZnHcXQ==", - "dev": true, - "optional": true - }, - "@esbuild/linux-loong64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.23.1.tgz", - "integrity": "sha512-Vx09LzEoBa5zDnieH8LSMRToj7ir/Jeq0Gu6qJ/1GcBq9GkfoEAoXvLiW1U9J1qE/Y/Oyaq33w5p2ZWrNNHNEw==", - "dev": true, - "optional": true - }, - "@esbuild/linux-mips64el": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.23.1.tgz", - "integrity": "sha512-nrFzzMQ7W4WRLNUOU5dlWAqa6yVeI0P78WKGUo7lg2HShq/yx+UYkeNSE0SSfSure0SqgnsxPvmAUu/vu0E+3Q==", - "dev": true, - "optional": true - }, - "@esbuild/linux-ppc64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.23.1.tgz", - "integrity": "sha512-dKN8fgVqd0vUIjxuJI6P/9SSSe/mB9rvA98CSH2sJnlZ/OCZWO1DJvxj8jvKTfYUdGfcq2dDxoKaC6bHuTlgcw==", - "dev": true, - "optional": true - }, - "@esbuild/linux-riscv64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.23.1.tgz", - "integrity": "sha512-5AV4Pzp80fhHL83JM6LoA6pTQVWgB1HovMBsLQ9OZWLDqVY8MVobBXNSmAJi//Csh6tcY7e7Lny2Hg1tElMjIA==", - "dev": true, - "optional": true - }, - "@esbuild/linux-s390x": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.23.1.tgz", - "integrity": "sha512-9ygs73tuFCe6f6m/Tb+9LtYxWR4c9yg7zjt2cYkjDbDpV/xVn+68cQxMXCjUpYwEkze2RcU/rMnfIXNRFmSoDw==", - "dev": true, - "optional": true - }, - "@esbuild/linux-x64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.23.1.tgz", - "integrity": "sha512-EV6+ovTsEXCPAp58g2dD68LxoP/wK5pRvgy0J/HxPGB009omFPv3Yet0HiaqvrIrgPTBuC6wCH1LTOY91EO5hQ==", - "dev": true, - "optional": true - }, - "@esbuild/netbsd-x64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.23.1.tgz", - "integrity": "sha512-aevEkCNu7KlPRpYLjwmdcuNz6bDFiE7Z8XC4CPqExjTvrHugh28QzUXVOZtiYghciKUacNktqxdpymplil1beA==", - "dev": true, - "optional": true - }, - "@esbuild/openbsd-arm64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.23.1.tgz", - "integrity": "sha512-3x37szhLexNA4bXhLrCC/LImN/YtWis6WXr1VESlfVtVeoFJBRINPJ3f0a/6LV8zpikqoUg4hyXw0sFBt5Cr+Q==", - "dev": true, - "optional": true - }, - "@esbuild/openbsd-x64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.23.1.tgz", - "integrity": "sha512-aY2gMmKmPhxfU+0EdnN+XNtGbjfQgwZj43k8G3fyrDM/UdZww6xrWxmDkuz2eCZchqVeABjV5BpildOrUbBTqA==", - "dev": true, - "optional": true - }, - "@esbuild/sunos-x64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.23.1.tgz", - "integrity": "sha512-RBRT2gqEl0IKQABT4XTj78tpk9v7ehp+mazn2HbUeZl1YMdaGAQqhapjGTCe7uw7y0frDi4gS0uHzhvpFuI1sA==", - "dev": true, - "optional": true - }, - "@esbuild/win32-arm64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.23.1.tgz", - "integrity": "sha512-4O+gPR5rEBe2FpKOVyiJ7wNDPA8nGzDuJ6gN4okSA1gEOYZ67N8JPk58tkWtdtPeLz7lBnY6I5L3jdsr3S+A6A==", - "dev": true, - "optional": true - }, - "@esbuild/win32-ia32": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.23.1.tgz", - "integrity": "sha512-BcaL0Vn6QwCwre3Y717nVHZbAa4UBEigzFm6VdsVdT/MbZ38xoj1X9HPkZhbmaBGUD1W8vxAfffbDe8bA6AKnQ==", - "dev": true, - "optional": true - }, - "@esbuild/win32-x64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.23.1.tgz", - "integrity": "sha512-BHpFFeslkWrXWyUPnbKm+xYYVYruCinGcftSBaa8zoF9hZO4BcSCFUvHVTtzpIY6YzUnYtuEhZ+C9iEXjxnasg==", - "dev": true, - "optional": true - }, - "@gerrit0/mini-shiki": { - "version": "1.24.1", - "resolved": "https://registry.npmjs.org/@gerrit0/mini-shiki/-/mini-shiki-1.24.1.tgz", - "integrity": "sha512-PNP/Gjv3VqU7z7DjRgO3F9Ok5frTKqtpV+LJW1RzMcr2zpRk0ulhEWnbcNGXzPC7BZyWMIHrkfQX2GZRfxrn6Q==", - "dev": true, - "requires": { - "@shikijs/engine-oniguruma": "^1.24.0", - "@shikijs/types": "^1.24.0", - "@shikijs/vscode-textmate": "^9.3.0" - } - }, - "@isaacs/cliui": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", - "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", - "requires": { - "string-width": "^5.1.2", - "string-width-cjs": "npm:string-width@^4.2.0", - "strip-ansi": "^7.0.1", - "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", - "wrap-ansi": "^8.1.0", - "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", - "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==" - }, - "ansi-styles": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", - "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==" - }, - "emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==" - }, - "string-width": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", - "requires": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" - } - }, - "strip-ansi": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.0.1.tgz", - "integrity": "sha512-cXNxvT8dFNRVfhVME3JAe98mkXDYN2O1l7jmcwMnOslDeESg1rF/OZMtK0nRAhiari1unG5cD4jG3rapUAkLbw==", - "requires": { - "ansi-regex": "^6.0.1" - } - }, - "wrap-ansi": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", - "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", - "requires": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" - } - } - } - }, - "@isaacs/fs-minipass": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@isaacs/fs-minipass/-/fs-minipass-4.0.0.tgz", - "integrity": "sha512-S00nN1Qt3z3dSP6Db45fj/mksrAq5XWNIJ/SWXGP8XPT2jrzEuYRCSEx08JpJwBcG2F1xgiOtBMGDU0AZHmxew==", - "requires": { - "minipass": "^7.0.4" - } - }, - "@istanbuljs/schema": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", - "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", - "dev": true - }, - "@jridgewell/resolve-uri": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", - "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", - "dev": true - }, - "@jridgewell/sourcemap-codec": { - "version": "1.4.15", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", - "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", - "dev": true - }, - "@jridgewell/trace-mapping": { - "version": "0.3.20", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.20.tgz", - "integrity": "sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==", - "dev": true, - "requires": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" - } - }, - "@jsep-plugin/assignment": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@jsep-plugin/assignment/-/assignment-1.3.0.tgz", - "integrity": "sha512-VVgV+CXrhbMI3aSusQyclHkenWSAm95WaiKrMxRFam3JSUiIaQjoMIw2sEs/OX4XifnqeQUN4DYbJjlA8EfktQ==", - "requires": {} - }, - "@jsep-plugin/regex": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@jsep-plugin/regex/-/regex-1.0.4.tgz", - "integrity": "sha512-q7qL4Mgjs1vByCaTnDFcBnV9HS7GVPJX5vyVoCgZHNSC9rjwIlmbXG5sUuorR5ndfHAIlJ8pVStxvjXHbNvtUg==", - "requires": {} - }, - "@pkgjs/parseargs": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", - "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", - "optional": true - }, - "@shikijs/engine-oniguruma": { - "version": "1.24.0", - "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-1.24.0.tgz", - "integrity": "sha512-Eua0qNOL73Y82lGA4GF5P+G2+VXX9XnuUxkiUuwcxQPH4wom+tE39kZpBFXfUuwNYxHSkrSxpB1p4kyRW0moSg==", - "dev": true, - "requires": { - "@shikijs/types": "1.24.0", - "@shikijs/vscode-textmate": "^9.3.0" - } - }, - "@shikijs/types": { - "version": "1.24.0", - "resolved": "https://registry.npmjs.org/@shikijs/types/-/types-1.24.0.tgz", - "integrity": "sha512-aptbEuq1Pk88DMlCe+FzXNnBZ17LCiLIGWAeCWhoFDzia5Q5Krx3DgnULLiouSdd6+LUM39XwXGppqYE0Ghtug==", - "dev": true, - "requires": { - "@shikijs/vscode-textmate": "^9.3.0", - "@types/hast": "^3.0.4" - } - }, - "@shikijs/vscode-textmate": { - "version": "9.3.0", - "resolved": "https://registry.npmjs.org/@shikijs/vscode-textmate/-/vscode-textmate-9.3.0.tgz", - "integrity": "sha512-jn7/7ky30idSkd/O5yDBfAnVt+JJpepofP/POZ1iMOxK59cOfqIgg/Dj0eFsjOTMw+4ycJN0uhZH/Eb0bs/EUA==", - "dev": true - }, - "@types/chai": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.0.1.tgz", - "integrity": "sha512-5T8ajsg3M/FOncpLYW7sdOcD6yf4+722sze/tc4KQV0P8Z2rAr3SAuHCIkYmYpt8VbcQlnz8SxlOlPQYefe4cA==", - "dev": true, - "requires": { - "@types/deep-eql": "*" - } - }, - "@types/chai-as-promised": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/@types/chai-as-promised/-/chai-as-promised-8.0.1.tgz", - "integrity": "sha512-dAlDhLjJlABwAVYObo9TPWYTRg9NaQM5CXeaeJYcYAkvzUf0JRLIiog88ao2Wqy/20WUnhbbUZcgvngEbJ3YXQ==", - "dev": true, - "requires": { - "@types/chai": "*" - } - }, - "@types/deep-eql": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz", - "integrity": "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==", - "dev": true - }, - "@types/hast": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.4.tgz", - "integrity": "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==", - "dev": true, - "requires": { - "@types/unist": "*" - } - }, - "@types/istanbul-lib-coverage": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", - "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", - "dev": true - }, - "@types/js-yaml": { - "version": "4.0.9", - "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-4.0.9.tgz", - "integrity": "sha512-k4MGaQl5TGo/iipqb2UDG2UwjXziSWkh0uysQelTlJpX1qGlpUZYm8PnO4DxG1qBomtJUdYJ6qR6xdIah10JLg==" - }, - "@types/mocha": { - "version": "10.0.10", - "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-10.0.10.tgz", - "integrity": "sha512-xPyYSz1cMPnJQhl0CLMH68j3gprKZaTjG3s5Vi+fDgx+uhG9NOXwbVt52eFS8ECyXhyKcjDLCBEqBExKuiZb7Q==", - "dev": true - }, - "@types/mock-fs": { - "version": "4.13.4", - "resolved": "https://registry.npmjs.org/@types/mock-fs/-/mock-fs-4.13.4.tgz", - "integrity": "sha512-mXmM0o6lULPI8z3XNnQCpL0BGxPwx1Ul1wXYEPBGl4efShyxW2Rln0JOPEWGyZaYZMM6OVXM/15zUuFMY52ljg==", - "dev": true, - "requires": { - "@types/node": "*" - } - }, - "@types/node": { - "version": "22.10.2", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.10.2.tgz", - "integrity": "sha512-Xxr6BBRCAOQixvonOye19wnzyDiUtTeqldOOmj3CkeblonbccA12PFwlufvRdrpjXxqnmUaeiU5EOA+7s5diUQ==", - "requires": { - "undici-types": "~6.20.0" - } - }, - "@types/node-fetch": { - "version": "2.6.11", - "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.11.tgz", - "integrity": "sha512-24xFj9R5+rfQJLRyM56qh+wnVSYhyXC2tkoBndtY0U+vubqNsYXGjufB2nn8Q6gt0LrARwL6UBtMCSVCwl4B1g==", - "requires": { - "@types/node": "*", - "form-data": "^4.0.0" - } - }, - "@types/stream-buffers": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/@types/stream-buffers/-/stream-buffers-3.0.7.tgz", - "integrity": "sha512-azOCy05sXVXrO+qklf0c/B07H/oHaIuDDAiHPVwlk3A9Ek+ksHyTeMajLZl3r76FxpPpxem//4Te61G1iW3Giw==", - "requires": { - "@types/node": "*" - } - }, - "@types/tar": { - "version": "6.1.13", - "resolved": "https://registry.npmjs.org/@types/tar/-/tar-6.1.13.tgz", - "integrity": "sha512-IznnlmU5f4WcGTh2ltRu/Ijpmk8wiWXfF0VA4s+HPjHZgvFggk1YaIkbo5krX/zUCzWF8N/l4+W/LNxnvAJ8nw==", - "requires": { - "@types/node": "*", - "minipass": "^4.0.0" - }, - "dependencies": { - "minipass": { - "version": "4.2.8", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-4.2.8.tgz", - "integrity": "sha512-fNzuVyifolSLFL4NzpF+wEF4qrgqaaKX0haXPQEdQ7NKAN+WecoKMHV09YcuL/DHxrUsYQOK3MiuDf7Ip2OXfQ==" - } - } - }, - "@types/unist": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz", - "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==", - "dev": true - }, - "@types/ws": { - "version": "8.5.13", - "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.13.tgz", - "integrity": "sha512-osM/gWBTPKgHV8XkTunnegTRIsvF6owmf5w+JtAfOw472dptdm0dlGv4xCt6GwQRcC2XVOvvRE/0bAoQcL2QkA==", - "requires": { - "@types/node": "*" - } - }, - "agent-base": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.3.tgz", - "integrity": "sha512-jRR5wdylq8CkOe6hei19GGZnxM6rBGwFl3Bg0YItGDimvjGtAvdZk4Pu6Cl4u4Igsws4a1fd1Vq3ezrhn4KmFw==" - }, - "ansi-colors": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", - "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==", - "dev": true - }, - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==" - }, - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "dev": true, - "requires": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - } - }, - "argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, - "requires": { - "sprintf-js": "~1.0.2" - } - }, - "assertion-error": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz", - "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==", - "dev": true - }, - "asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" - }, - "balanced-match": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" - }, - "binary-extensions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", - "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", - "dev": true - }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "braces": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", - "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", - "dev": true, - "requires": { - "fill-range": "^7.1.1" - } - }, - "browser-stdout": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", - "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", - "dev": true - }, - "builtin-modules": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", - "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", - "dev": true - }, - "c8": { - "version": "10.1.3", - "resolved": "https://registry.npmjs.org/c8/-/c8-10.1.3.tgz", - "integrity": "sha512-LvcyrOAaOnrrlMpW22n690PUvxiq4Uf9WMhQwNJ9vgagkL/ph1+D4uvjvDA5XCbykrc0sx+ay6pVi9YZ1GnhyA==", - "dev": true, - "requires": { - "@bcoe/v8-coverage": "^1.0.1", - "@istanbuljs/schema": "^0.1.3", - "find-up": "^5.0.0", - "foreground-child": "^3.1.1", - "istanbul-lib-coverage": "^3.2.0", - "istanbul-lib-report": "^3.0.1", - "istanbul-reports": "^3.1.6", - "test-exclude": "^7.0.1", - "v8-to-istanbul": "^9.0.0", - "yargs": "^17.7.2", - "yargs-parser": "^21.1.1" - } - }, - "chai": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/chai/-/chai-5.1.2.tgz", - "integrity": "sha512-aGtmf24DW6MLHHG5gCx4zaI3uBq3KRtxeVs0DjFH6Z0rDNbsvTxFASFvdj79pxjxZ8/5u3PIiN3IwEIQkiiuPw==", - "dev": true, - "requires": { - "assertion-error": "^2.0.1", - "check-error": "^2.1.1", - "deep-eql": "^5.0.1", - "loupe": "^3.1.0", - "pathval": "^2.0.0" - } - }, - "chai-as-promised": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/chai-as-promised/-/chai-as-promised-8.0.1.tgz", - "integrity": "sha512-OIEJtOL8xxJSH8JJWbIoRjybbzR52iFuDHuF8eb+nTPD6tgXLjRqsgnUGqQfFODxYvq5QdirT0pN9dZ0+Gz6rA==", - "dev": true, - "requires": { - "check-error": "^2.0.0" - } - }, - "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "dependencies": { - "supports-color": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", - "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } - } - }, - "check-error": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/check-error/-/check-error-2.1.1.tgz", - "integrity": "sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==", - "dev": true - }, - "chokidar": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", - "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", - "dev": true, - "requires": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "fsevents": "~2.3.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - } - }, - "chownr": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-3.0.0.tgz", - "integrity": "sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==" - }, - "cliui": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", - "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", - "dev": true, - "requires": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^7.0.0" - } - }, - "color-convert": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.1.tgz", - "integrity": "sha512-mjGanIiwQJskCC18rPR6OmrZ6fm2Lc7PeGFYwCmy5J34wC6F1PzdGL6xeMfmgicfYcNLGuVFA3WzXtIDCQSZxQ==", - "dev": true, - "requires": { - "color-name": "^1.1.1" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "requires": { - "delayed-stream": "~1.0.0" - } - }, - "commander": { - "version": "2.15.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.15.1.tgz", - "integrity": "sha512-VlfT9F3V0v+jr4yxPc5gg9s62/fIVWsd2Bk2iD435um1NlGMYdVCq+MjcXnhYq2icNOizHr1kK+5TI6H0Hy0ag==", - "dev": true - }, - "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" - }, - "convert-source-map": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", - "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", - "dev": true - }, - "cross-spawn": { - "version": "7.0.5", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.5.tgz", - "integrity": "sha512-ZVJrKKYunU38/76t0RMOulHOnUcbU9GbpWKAOZ0mhjr7CX6FVrH+4FrAapSOekrgFQ3f/8gwMEuIft0aKq6Hug==", - "requires": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "dependencies": { - "which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "requires": { - "isexe": "^2.0.0" - } - } - } - }, - "debug": { - "version": "4.3.5", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.5.tgz", - "integrity": "sha512-pt0bNEmneDIvdL1Xsd9oDQ/wrQRkXDT4AUWlNZNPKvW5x/jyO9VFXkJUP07vQ2upmw5PlaITaPKc31jK13V+jg==", - "dev": true, - "requires": { - "ms": "2.1.2" - }, - "dependencies": { - "ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - } - } - }, - "deep-eql": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-5.0.2.tgz", - "integrity": "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==", - "dev": true - }, - "delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==" - }, - "diff": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", - "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", - "dev": true - }, - "eastasianwidth": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", - "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==" - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "entities": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", - "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", - "dev": true - }, - "esbuild": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.23.1.tgz", - "integrity": "sha512-VVNz/9Sa0bs5SELtn3f7qhJCDPCF5oMEl5cO9/SSinpE9hbPVvxbd572HH5AKiP7WD8INO53GgfDDhRjkylHEg==", - "dev": true, - "requires": { - "@esbuild/aix-ppc64": "0.23.1", - "@esbuild/android-arm": "0.23.1", - "@esbuild/android-arm64": "0.23.1", - "@esbuild/android-x64": "0.23.1", - "@esbuild/darwin-arm64": "0.23.1", - "@esbuild/darwin-x64": "0.23.1", - "@esbuild/freebsd-arm64": "0.23.1", - "@esbuild/freebsd-x64": "0.23.1", - "@esbuild/linux-arm": "0.23.1", - "@esbuild/linux-arm64": "0.23.1", - "@esbuild/linux-ia32": "0.23.1", - "@esbuild/linux-loong64": "0.23.1", - "@esbuild/linux-mips64el": "0.23.1", - "@esbuild/linux-ppc64": "0.23.1", - "@esbuild/linux-riscv64": "0.23.1", - "@esbuild/linux-s390x": "0.23.1", - "@esbuild/linux-x64": "0.23.1", - "@esbuild/netbsd-x64": "0.23.1", - "@esbuild/openbsd-arm64": "0.23.1", - "@esbuild/openbsd-x64": "0.23.1", - "@esbuild/sunos-x64": "0.23.1", - "@esbuild/win32-arm64": "0.23.1", - "@esbuild/win32-ia32": "0.23.1", - "@esbuild/win32-x64": "0.23.1" - } - }, - "escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", - "dev": true - }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true - }, - "esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true - }, - "execa": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", - "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", - "dev": true, - "requires": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.0", - "human-signals": "^2.1.0", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.1", - "onetime": "^5.1.2", - "signal-exit": "^3.0.3", - "strip-final-newline": "^2.0.0" - }, - "dependencies": { - "signal-exit": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", - "dev": true - } - } - }, - "fill-range": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", - "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", - "dev": true, - "requires": { - "to-regex-range": "^5.0.1" - } - }, - "find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "requires": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - } - }, - "flat": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", - "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", - "dev": true - }, - "foreground-child": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.1.1.tgz", - "integrity": "sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==", - "requires": { - "cross-spawn": "^7.0.0", - "signal-exit": "^4.0.1" - } - }, - "form-data": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.1.tgz", - "integrity": "sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw==", - "requires": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - } - }, - "fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" - }, - "fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "optional": true - }, - "get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true - }, - "get-stream": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", - "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", - "dev": true - }, - "get-tsconfig": { - "version": "4.8.1", - "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.8.1.tgz", - "integrity": "sha512-k9PN+cFBmaLWtVz29SkUoqU5O0slLuHJXt/2P+tMVFT+phsSGXGkp9t3rQIqdz0e+06EHNGs3oM6ZX1s2zHxRg==", - "dev": true, - "requires": { - "resolve-pkg-maps": "^1.0.0" - } - }, - "glob": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", - "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "requires": { - "is-glob": "^4.0.1" - } - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - }, - "he": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", - "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", - "dev": true - }, - "hpagent": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/hpagent/-/hpagent-1.2.0.tgz", - "integrity": "sha512-A91dYTeIB6NoXG+PxTQpCCDDnfHsW9kc06Lvpu1TEe9gnd6ZFeiBoRO9JvzEv6xK7EX97/dUE8g/vBMTqTS3CA==" - }, - "html-escaper": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", - "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", - "dev": true - }, - "human-signals": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", - "dev": true - }, - "husky": { - "version": "9.1.7", - "resolved": "https://registry.npmjs.org/husky/-/husky-9.1.7.tgz", - "integrity": "sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==", - "dev": true - }, - "ignore": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", - "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", - "dev": true - }, - "inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" - }, - "ip-address": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-9.0.5.tgz", - "integrity": "sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==", - "requires": { - "jsbn": "1.1.0", - "sprintf-js": "^1.1.3" - }, - "dependencies": { - "sprintf-js": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz", - "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==" - } - } - }, - "is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "dev": true, - "requires": { - "binary-extensions": "^2.0.0" - } - }, - "is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==" - }, - "is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, - "requires": { - "is-extglob": "^2.1.1" - } - }, - "is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true - }, - "is-plain-obj": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", - "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", - "dev": true - }, - "is-stream": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", - "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", - "dev": true - }, - "is-unicode-supported": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", - "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", - "dev": true - }, - "isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=" - }, - "isomorphic-ws": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/isomorphic-ws/-/isomorphic-ws-5.0.0.tgz", - "integrity": "sha512-muId7Zzn9ywDsyXgTIafTry2sV3nySZeUDe6YedVd1Hvuuep5AsIlqK+XefWpYTyJG5e503F2xIuT2lcU6rCSw==", - "requires": {} - }, - "istanbul-lib-coverage": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", - "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", - "dev": true - }, - "istanbul-lib-report": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", - "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", - "dev": true, - "requires": { - "istanbul-lib-coverage": "^3.0.0", - "make-dir": "^4.0.0", - "supports-color": "^7.1.0" - }, - "dependencies": { - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "istanbul-reports": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.6.tgz", - "integrity": "sha512-TLgnMkKg3iTDsQ9PbPTdpfAK2DzjF9mqUG7RMgcQl8oFjad8ob4laGxv5XV5U9MAfx8D6tSJiUyuAwzLicaxlg==", - "dev": true, - "requires": { - "html-escaper": "^2.0.0", - "istanbul-lib-report": "^3.0.0" - } - }, - "jackspeak": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.6.tgz", - "integrity": "sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==", - "requires": { - "@isaacs/cliui": "^8.0.2", - "@pkgjs/parseargs": "^0.11.0" - } - }, - "jose": { - "version": "5.9.6", - "resolved": "https://registry.npmjs.org/jose/-/jose-5.9.6.tgz", - "integrity": "sha512-AMlnetc9+CV9asI19zHmrgS/WYsWUwCn2R7RzlbJWD7F9eWYUTGyBmU9o6PxngtLGOiDGPRu+Uc4fhKzbpteZQ==" - }, - "js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true - }, - "js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "requires": { - "argparse": "^2.0.1" - }, - "dependencies": { - "argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" - } - } - }, - "jsbn": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz", - "integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==" - }, - "jsep": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/jsep/-/jsep-1.4.0.tgz", - "integrity": "sha512-B7qPcEVE3NVkmSJbaYxvv4cHkVW7DQsZz13pUMrfS8z8Q/BuShN+gcTXrUlPiGqM2/t/EEaI030bpxMqY8gMlw==" - }, - "json-stringify-safe": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", - "dev": true - }, - "jsonpath-plus": { - "version": "10.2.0", - "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-10.2.0.tgz", - "integrity": "sha512-T9V+8iNYKFL2n2rF+w02LBOT2JjDnTjioaNFrxRy0Bv1y/hNsqR/EBK7Ojy2ythRHwmz2cRIls+9JitQGZC/sw==", - "requires": { - "@jsep-plugin/assignment": "^1.3.0", - "@jsep-plugin/regex": "^1.0.4", - "jsep": "^1.4.0" - } - }, - "linkify-it": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-5.0.0.tgz", - "integrity": "sha512-5aHCbzQRADcdP+ATqnDuhhJ/MRIqDkZX5pyjFHRRysS8vZ5AbqGEoFIb6pYHPZ+L/OC2Lc+xT8uHVVR5CAK/wQ==", - "dev": true, - "requires": { - "uc.micro": "^2.0.0" - } - }, - "locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "requires": { - "p-locate": "^5.0.0" - } - }, - "lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "dev": true - }, - "log-symbols": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", - "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", - "dev": true, - "requires": { - "chalk": "^4.1.0", - "is-unicode-supported": "^0.1.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "loupe": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/loupe/-/loupe-3.1.2.tgz", - "integrity": "sha512-23I4pFZHmAemUnz8WZXbYRSKYj801VDaNv9ETuMh7IrMc7VuVVSo+Z9iLE3ni30+U48iDWfi30d3twAXBYmnCg==", - "dev": true - }, - "lru-cache": { - "version": "10.2.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.2.0.tgz", - "integrity": "sha512-2bIM8x+VAf6JT4bKAljS1qUWgMsqZRPGJS6FSahIMPVvctcNhyVp7AJu7quxOW9jwkryBReKZY5tY5JYv2n/7Q==" - }, - "lunr": { - "version": "2.3.9", - "resolved": "https://registry.npmjs.org/lunr/-/lunr-2.3.9.tgz", - "integrity": "sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow==", - "dev": true - }, - "make-dir": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", - "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", - "dev": true, - "requires": { - "semver": "^7.5.3" - }, - "dependencies": { - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - }, - "semver": { - "version": "7.5.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", - "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - } - } - }, - "markdown-it": { - "version": "14.1.0", - "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-14.1.0.tgz", - "integrity": "sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==", - "dev": true, - "requires": { - "argparse": "^2.0.1", - "entities": "^4.4.0", - "linkify-it": "^5.0.0", - "mdurl": "^2.0.0", - "punycode.js": "^2.3.1", - "uc.micro": "^2.1.0" - }, - "dependencies": { - "argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - } - } - }, - "mdurl": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-2.0.0.tgz", - "integrity": "sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==", - "dev": true - }, - "merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "dev": true - }, - "mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" - }, - "mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "requires": { - "mime-db": "1.52.0" - } - }, - "mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "dev": true - }, - "minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "minimist": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", - "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", - "dev": true - }, - "minipass": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", - "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==" - }, - "minizlib": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-3.0.1.tgz", - "integrity": "sha512-umcy022ILvb5/3Djuu8LWeqUa8D68JaBzlttKeMWen48SjabqS3iY5w/vzeMzMUNhLDifyhbOwKDSznB1vvrwg==", - "requires": { - "minipass": "^7.0.4", - "rimraf": "^5.0.5" - }, - "dependencies": { - "brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "requires": { - "balanced-match": "^1.0.0" - } - }, - "glob": { - "version": "10.3.12", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.12.tgz", - "integrity": "sha512-TCNv8vJ+xz4QiqTpfOJA7HvYv+tNIRHKfUWw/q+v2jdgN4ebz+KY9tGx5J4rHP0o84mNP+ApH66HRX8us3Khqg==", - "requires": { - "foreground-child": "^3.1.0", - "jackspeak": "^2.3.6", - "minimatch": "^9.0.1", - "minipass": "^7.0.4", - "path-scurry": "^1.10.2" - } - }, - "minimatch": { - "version": "9.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.4.tgz", - "integrity": "sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==", - "requires": { - "brace-expansion": "^2.0.1" - } - }, - "rimraf": { - "version": "5.0.5", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.5.tgz", - "integrity": "sha512-CqDakW+hMe/Bz202FPEymy68P+G50RfMQK+Qo5YUqc9SPipvbGjCGKd0RSKEelbsfQuw3g5NZDSrlZZAJurH1A==", - "requires": { - "glob": "^10.3.7" - } - } - } - }, - "mkdirp": { - "version": "0.5.5", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", - "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", - "dev": true, - "requires": { - "minimist": "^1.2.5" - } - }, - "mocha": { - "version": "11.0.1", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-11.0.1.tgz", - "integrity": "sha512-+3GkODfsDG71KSCQhc4IekSW+ItCK/kiez1Z28ksWvYhKXV/syxMlerR/sC7whDp7IyreZ4YxceMLdTs5hQE8A==", - "dev": true, - "requires": { - "ansi-colors": "^4.1.3", - "browser-stdout": "^1.3.1", - "chokidar": "^3.5.3", - "debug": "^4.3.5", - "diff": "^5.2.0", - "escape-string-regexp": "^4.0.0", - "find-up": "^5.0.0", - "glob": "^10.4.5", - "he": "^1.2.0", - "js-yaml": "^4.1.0", - "log-symbols": "^4.1.0", - "minimatch": "^5.1.6", - "ms": "^2.1.3", - "serialize-javascript": "^6.0.2", - "strip-json-comments": "^3.1.1", - "supports-color": "^8.1.1", - "workerpool": "^6.5.1", - "yargs": "^16.2.0", - "yargs-parser": "^20.2.9", - "yargs-unparser": "^2.0.0" - }, - "dependencies": { - "brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0" - } - }, - "cliui": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", - "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", - "dev": true, - "requires": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" - } - }, - "diff": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-5.2.0.tgz", - "integrity": "sha512-uIFDxqpRZGZ6ThOk84hEfqWoHx2devRFvpTZcTHur85vImfaxUbTW9Ryh4CpCuDnToOP1CEtXKIgytHBPVff5A==", - "dev": true - }, - "escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true - }, - "glob": { - "version": "10.4.5", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", - "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", - "dev": true, - "requires": { - "foreground-child": "^3.1.0", - "jackspeak": "^3.1.2", - "minimatch": "^9.0.4", - "minipass": "^7.1.2", - "package-json-from-dist": "^1.0.0", - "path-scurry": "^1.11.1" - }, - "dependencies": { - "minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dev": true, - "requires": { - "brace-expansion": "^2.0.1" - } - } - } - }, - "jackspeak": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", - "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", - "dev": true, - "requires": { - "@isaacs/cliui": "^8.0.2", - "@pkgjs/parseargs": "^0.11.0" - } - }, - "minimatch": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", - "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", - "dev": true, - "requires": { - "brace-expansion": "^2.0.1" - } - }, - "yargs": { - "version": "16.2.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", - "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", - "dev": true, - "requires": { - "cliui": "^7.0.2", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.0", - "y18n": "^5.0.5", - "yargs-parser": "^20.2.2" - } - }, - "yargs-parser": { - "version": "20.2.9", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", - "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", - "dev": true - } - } - }, - "mock-fs": { - "version": "5.4.1", - "resolved": "https://registry.npmjs.org/mock-fs/-/mock-fs-5.4.1.tgz", - "integrity": "sha512-sz/Q8K1gXXXHR+qr0GZg2ysxCRr323kuN10O7CtQjraJsFDJ4SJ+0I5MzALz7aRp9lHk8Cc/YdsT95h9Ka1aFw==", - "dev": true - }, - "mri": { + "node_modules/mri": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz", "integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==", - "dev": true + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } }, - "ms": { + "node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true + "license": "MIT" + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true, + "license": "MIT" }, - "nock": { - "version": "13.5.6", - "resolved": "https://registry.npmjs.org/nock/-/nock-13.5.6.tgz", - "integrity": "sha512-o2zOYiCpzRqSzPj0Zt/dQ/DqZeYoaQ7TUonc/xUPjCGl9WeHpNbxgVvOquXYAaJzI0M9BXV3HTzG0p8IUAbBTQ==", + "node_modules/nock": { + "version": "14.0.10", + "resolved": "https://registry.npmjs.org/nock/-/nock-14.0.10.tgz", + "integrity": "sha512-Q7HjkpyPeLa0ZVZC5qpxBt5EyLczFJ91MEewQiIi9taWuA0KB/MDJlUWtON+7dGouVdADTQsf9RA7TZk6D8VMw==", "dev": true, - "requires": { - "debug": "^4.1.0", + "license": "MIT", + "dependencies": { + "@mswjs/interceptors": "^0.39.5", "json-stringify-safe": "^5.0.1", "propagate": "^2.0.0" + }, + "engines": { + "node": ">=18.20.0 <20 || >=20.12.1" } }, - "node-fetch": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.9.tgz", - "integrity": "sha512-DJm/CJkZkRjKKj4Zi4BsKVZh3ValV5IR5s7LVZnW+6YMh0W1BfNA8XSs6DLMGYlId5F3KnA70uu2qepcR08Qqg==", - "requires": { - "whatwg-url": "12.0.1" + "node_modules/node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "license": "MIT", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } } }, - "normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true - }, - "npm-run-path": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", - "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", - "dev": true, - "requires": { - "path-key": "^3.0.0" + "node_modules/oauth4webapi": { + "version": "3.8.2", + "resolved": "https://registry.npmjs.org/oauth4webapi/-/oauth4webapi-3.8.2.tgz", + "integrity": "sha512-FzZZ+bht5X0FKe7Mwz3DAVAmlH1BV5blSak/lHMBKz0/EBMhX6B10GlQYI51+oRp8ObJaX0g6pXrAxZh5s8rjw==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/panva" } }, - "oauth4webapi": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/oauth4webapi/-/oauth4webapi-3.1.4.tgz", - "integrity": "sha512-eVfN3nZNbok2s/ROifO0UAc5G8nRoLSbrcKJ09OqmucgnhXEfdIQOR4gq1eJH1rN3gV7rNw62bDEgftsgFtBEg==" - }, - "once": { + "node_modules/once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "requires": { + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "license": "ISC", + "dependencies": { "wrappy": "1" } }, - "onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "node_modules/openid-client": { + "version": "6.8.1", + "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-6.8.1.tgz", + "integrity": "sha512-VoYT6enBo6Vj2j3Q5Ec0AezS+9YGzQo1f5Xc42lreMGlfP4ljiXPKVDvCADh+XHCV/bqPu/wWSiCVXbJKvrODw==", + "license": "MIT", + "dependencies": { + "jose": "^6.1.0", + "oauth4webapi": "^3.8.2" + }, + "funding": { + "url": "https://github.com/sponsors/panva" + } + }, + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", "dev": true, - "requires": { - "mimic-fn": "^2.1.0" + "license": "MIT", + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" + }, + "engines": { + "node": ">= 0.8.0" } }, - "openid-client": { - "version": "6.1.7", - "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-6.1.7.tgz", - "integrity": "sha512-JfY/KvQgOutmG2P+oVNKInE7zIh+im1MQOaO7g5CtNnTWMociA563WweiEMKfR9ry9XG3K2HGvj9wEqhCQkPMg==", - "requires": { - "jose": "^5.9.6", - "oauth4webapi": "^3.1.4" + "node_modules/outvariant": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/outvariant/-/outvariant-1.4.3.tgz", + "integrity": "sha512-+Sl2UErvtsoajRDKCE5/dBz4DIvHXQQnAxtQTF04OJxY0+DyZXSo5P5Bb7XYWOh81syohlYL24hbDwxedPUJCA==", + "dev": true, + "license": "MIT" + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "p-locate": { + "node_modules/p-locate": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", "dev": true, - "requires": { + "license": "MIT", + "dependencies": { "p-limit": "^3.0.2" }, - "dependencies": { - "p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "requires": { - "yocto-queue": "^0.1.0" - } - } + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "package-json-from-dist": { + "node_modules/package-json-from-dist": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", - "dev": true + "dev": true, + "license": "BlueOak-1.0.0" + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "license": "MIT", + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } }, - "path-exists": { + "node_modules/path-exists": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true - }, - "path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } }, - "path-key": { + "node_modules/path-key": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==" - }, - "path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } }, - "path-scurry": { + "node_modules/path-scurry": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", - "requires": { + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { "lru-cache": "^10.2.0", "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" + }, + "engines": { + "node": ">=16 || 14 >=14.18" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "pathval": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/pathval/-/pathval-2.0.0.tgz", - "integrity": "sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==", - "dev": true + "node_modules/path-scurry/node_modules/minipass": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=16 || 14 >=14.17" + } }, - "picocolors": { + "node_modules/picocolors": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", - "dev": true + "dev": true, + "license": "ISC" }, - "picomatch": { + "node_modules/picomatch": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } }, - "prettier": { - "version": "3.4.2", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.4.2.tgz", - "integrity": "sha512-e9MewbtFo+Fevyuxn/4rrcDAaq0IYxPGLvObpQjiZBMAzB9IGmzlnG9RZy3FFas+eBMu2vA0CszMeduow5dIuQ==", - "dev": true + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8.0" + } }, - "pretty-quick": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/pretty-quick/-/pretty-quick-4.0.0.tgz", - "integrity": "sha512-M+2MmeufXb/M7Xw3Afh1gxcYpj+sK0AxEfnfF958ktFeAyi5MsKY5brymVURQLgPLV1QaF5P4pb2oFJ54H3yzQ==", + "node_modules/prettier": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.6.2.tgz", + "integrity": "sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==", "dev": true, - "requires": { - "execa": "^5.1.1", - "find-up": "^5.0.0", - "ignore": "^5.3.0", - "mri": "^1.2.0", - "picocolors": "^1.0.0", - "picomatch": "^3.0.1", - "tslib": "^2.6.2" + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/pretty-quick": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/pretty-quick/-/pretty-quick-4.2.2.tgz", + "integrity": "sha512-uAh96tBW1SsD34VhhDmWuEmqbpfYc/B3j++5MC/6b3Cb8Ow7NJsvKFhg0eoGu2xXX+o9RkahkTK6sUdd8E7g5w==", + "dev": true, + "license": "MIT", "dependencies": { - "picomatch": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-3.0.1.tgz", - "integrity": "sha512-I3EurrIQMlRc9IaAZnqRR044Phh2DXY+55o7uJ0V+hYZAcQYSuFWsc9q5PvyDHUSCe1Qxn/iBz+78s86zWnGag==", - "dev": true - } + "@pkgr/core": "^0.2.7", + "ignore": "^7.0.5", + "mri": "^1.2.0", + "picocolors": "^1.1.1", + "picomatch": "^4.0.2", + "tinyexec": "^0.3.2", + "tslib": "^2.8.1" + }, + "bin": { + "pretty-quick": "lib/cli.mjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://opencollective.com/pretty-quick" + }, + "peerDependencies": { + "prettier": "^3.0.0" + } + }, + "node_modules/pretty-quick/node_modules/ignore": { + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz", + "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" } }, - "propagate": { + "node_modules/pretty-quick/node_modules/picomatch": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", + "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/propagate": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/propagate/-/propagate-2.0.1.tgz", "integrity": "sha512-vGrhOavPSTz4QVNuBNdcNXePNdNMaO1xj9yBeH1ScQPjk/rhg9sSlCXPhMkFuaNNW/syTvYqsnbIJxMBfRbbag==", - "dev": true + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/pump": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.2.tgz", + "integrity": "sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw==", + "license": "MIT", + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } }, - "punycode": { + "node_modules/punycode": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==" + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } }, - "punycode.js": { + "node_modules/punycode.js": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/punycode.js/-/punycode.js-2.3.1.tgz", "integrity": "sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==", - "dev": true - }, - "randombytes": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", "dev": true, - "requires": { - "safe-buffer": "^5.1.0" + "license": "MIT", + "engines": { + "node": ">=6" } }, - "readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", "dev": true, - "requires": { - "picomatch": "^2.2.1" - } + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] }, - "require-directory": { + "node_modules/require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", - "dev": true + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } }, - "resolve": { - "version": "1.7.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.7.1.tgz", - "integrity": "sha512-c7rwLofp8g1U+h1KNyHL/jicrKg1Ek4q+Lr33AL65uZTinUZHe30D5HlyN5V9NW0JX1D5dXQ4jqW5l7Sy/kGfw==", + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", "dev": true, - "requires": { - "path-parse": "^1.0.5" + "license": "MIT", + "engines": { + "node": ">=4" } }, - "resolve-pkg-maps": { + "node_modules/resolve-pkg-maps": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", - "dev": true + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" + } + }, + "node_modules/reusify": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", + "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } }, - "rfc4648": { + "node_modules/rfc4648": { "version": "1.5.4", "resolved": "https://registry.npmjs.org/rfc4648/-/rfc4648-1.5.4.tgz", - "integrity": "sha512-rRg/6Lb+IGfJqO05HZkN50UtY7K/JhxJag1kP23+zyMfrvoB0B7RWv06MbOzoc79RgCdNTiUaNsTT1AJZ7Z+cg==" + "integrity": "sha512-rRg/6Lb+IGfJqO05HZkN50UtY7K/JhxJag1kP23+zyMfrvoB0B7RWv06MbOzoc79RgCdNTiUaNsTT1AJZ7Z+cg==", + "license": "MIT" }, - "rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "requires": { - "glob": "^7.1.3" + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" } }, - "safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true - }, - "semver": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", - "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", - "dev": true - }, - "serialize-javascript": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz", - "integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==", + "node_modules/semver": { + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", + "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", "dev": true, - "requires": { - "randombytes": "^2.1.0" + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" } }, - "shebang-command": { + "node_modules/shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "requires": { + "dev": true, + "license": "MIT", + "dependencies": { "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" } }, - "shebang-regex": { + "node_modules/shebang-regex": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==" + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } }, - "signal-exit": { + "node_modules/signal-exit": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==" + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } }, - "smart-buffer": { + "node_modules/smart-buffer": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", - "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==" + "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", + "license": "MIT", + "engines": { + "node": ">= 6.0.0", + "npm": ">= 3.0.0" + } }, - "socks": { - "version": "2.8.3", - "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.3.tgz", - "integrity": "sha512-l5x7VUUWbjVFbafGLxPWkYsHIhEvmF85tbIeFZWc8ZPtoMyybuEhL7Jye/ooC4/d48FgOjSJXgsF/AJPYCW8Zw==", - "requires": { + "node_modules/socks": { + "version": "2.8.4", + "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.4.tgz", + "integrity": "sha512-D3YaD0aRxR3mEcqnidIs7ReYJFVzWdd6fXJYUM8ixcQcJRGTka/b3saV0KflYhyVJXKhb947GndU35SxYNResQ==", + "license": "MIT", + "dependencies": { "ip-address": "^9.0.5", "smart-buffer": "^4.2.0" + }, + "engines": { + "node": ">= 10.0.0", + "npm": ">= 3.0.0" } }, - "socks-proxy-agent": { + "node_modules/socks-proxy-agent": { "version": "8.0.5", "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-8.0.5.tgz", "integrity": "sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw==", - "requires": { + "license": "MIT", + "dependencies": { "agent-base": "^7.1.2", "debug": "^4.3.4", "socks": "^2.8.3" - } - }, - "source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "dev": true, - "requires": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } + "engines": { + "node": ">= 14" } }, - "sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true + "node_modules/sprintf-js": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz", + "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==", + "license": "BSD-3-Clause" }, - "stream-buffers": { + "node_modules/stream-buffers": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/stream-buffers/-/stream-buffers-3.0.3.tgz", - "integrity": "sha512-pqMqwQCso0PBJt2PQmDO0cFj0lyqmiwOMiMSkVtRokl7e+ZTRYgDHKnuZNbqjiJXgsg4nuqtD/zxuo9KqTp0Yw==" + "integrity": "sha512-pqMqwQCso0PBJt2PQmDO0cFj0lyqmiwOMiMSkVtRokl7e+ZTRYgDHKnuZNbqjiJXgsg4nuqtD/zxuo9KqTp0Yw==", + "license": "Unlicense", + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/streamx": { + "version": "2.22.0", + "resolved": "https://registry.npmjs.org/streamx/-/streamx-2.22.0.tgz", + "integrity": "sha512-sLh1evHOzBy/iWRiR6d1zRcLao4gGZr3C1kzNz4fopCOKJb6xD9ub8Mpi9Mr1R6id5o43S+d93fI48UC5uM9aw==", + "license": "MIT", + "dependencies": { + "fast-fifo": "^1.3.2", + "text-decoder": "^1.1.0" + }, + "optionalDependencies": { + "bare-events": "^2.2.0" + } + }, + "node_modules/strict-event-emitter": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/strict-event-emitter/-/strict-event-emitter-0.5.1.tgz", + "integrity": "sha512-vMgjE/GGEPEFnhFub6pa4FmJBRBVOLpIII2hvCZ8Kzb7K0hlHo7mQv6xYrBvCL2LtAIBwFUK8wvuJgTVSQ5MFQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "string-width": { + "node_modules/string-width-cjs": { + "name": "string-width", "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "requires": { + "dev": true, + "license": "MIT", + "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" } }, - "string-width-cjs": { - "version": "npm:string-width@4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" + "node_modules/string-width-cjs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" } }, - "strip-ansi": { + "node_modules/string-width-cjs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, + "license": "MIT" + }, + "node_modules/string-width-cjs/node_modules/strip-ansi": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "requires": { + "dev": true, + "license": "MIT", + "dependencies": { "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" } }, - "strip-ansi-cjs": { - "version": "npm:strip-ansi@6.0.1", + "node_modules/strip-ansi-cjs": { + "name": "strip-ansi", + "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "requires": { + "dev": true, + "license": "MIT", + "dependencies": { "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" } }, - "strip-final-newline": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", - "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", - "dev": true + "node_modules/strip-ansi-cjs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } }, - "strip-json-comments": { + "node_modules/strip-json-comments": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "requires": { + "license": "MIT", + "dependencies": { "has-flag": "^4.0.0" }, - "dependencies": { - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - } + "engines": { + "node": ">=8" } }, - "tar": { - "version": "7.4.3", - "resolved": "https://registry.npmjs.org/tar/-/tar-7.4.3.tgz", - "integrity": "sha512-5S7Va8hKfV7W5U6g3aYxXmlPoZVAwUMy9AOKyF2fVuZa2UD3qZjg578OrLRt8PcNN1PleVaL/5/yYATNL0ICUw==", - "requires": { - "@isaacs/fs-minipass": "^4.0.0", - "chownr": "^3.0.0", - "minipass": "^7.1.2", - "minizlib": "^3.0.1", - "mkdirp": "^3.0.1", - "yallist": "^5.0.0" + "node_modules/tar-fs": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-3.1.1.tgz", + "integrity": "sha512-LZA0oaPOc2fVo82Txf3gw+AkEd38szODlptMYejQUhndHMLQ9M059uXR+AfS7DNo0NpINvSqDsvyaCrBVkptWg==", + "license": "MIT", + "dependencies": { + "pump": "^3.0.0", + "tar-stream": "^3.1.5" }, + "optionalDependencies": { + "bare-fs": "^4.0.1", + "bare-path": "^3.0.0" + } + }, + "node_modules/tar-stream": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-3.1.7.tgz", + "integrity": "sha512-qJj60CXt7IU1Ffyc3NJMjh6EkuCFej46zUqJ4J7pqYlThyd9bO0XBTmcOIhSzZJVWfsLks0+nle/j538YAW9RQ==", + "license": "MIT", "dependencies": { - "mkdirp": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz", - "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==" - }, - "yallist": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-5.0.0.tgz", - "integrity": "sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==" - } + "b4a": "^1.6.4", + "fast-fifo": "^1.2.0", + "streamx": "^2.15.0" } }, - "test-exclude": { + "node_modules/test-exclude": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-7.0.1.tgz", "integrity": "sha512-pFYqmTw68LXVjeWJMST4+borgQP2AyMNbg1BpZh9LbyhUeNkeaPF9gzfPGUAnSMV3qPYdWUwDIjjCLiSDOl7vg==", "dev": true, - "requires": { + "license": "ISC", + "dependencies": { "@istanbuljs/schema": "^0.1.2", "glob": "^10.4.1", "minimatch": "^9.0.4" }, - "dependencies": { - "brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0" - } - }, - "glob": { - "version": "10.4.1", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.1.tgz", - "integrity": "sha512-2jelhlq3E4ho74ZyVLN03oKdAZVUa6UDZzFLVH1H7dnoax+y9qyaq8zBkfDIggjniU19z0wU18y16jMB2eyVIw==", - "dev": true, - "requires": { - "foreground-child": "^3.1.0", - "jackspeak": "^3.1.2", - "minimatch": "^9.0.4", - "minipass": "^7.1.2", - "path-scurry": "^1.11.1" - } - }, - "jackspeak": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.0.tgz", - "integrity": "sha512-JVYhQnN59LVPFCEcVa2C3CrEKYacvjRfqIQl+h8oi91aLYQVWRYbxjPcv1bUiUy/kLmQaANrYfNMCO3kuEDHfw==", - "dev": true, - "requires": { - "@isaacs/cliui": "^8.0.2", - "@pkgjs/parseargs": "^0.11.0" - } - }, - "minimatch": { - "version": "9.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.4.tgz", - "integrity": "sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==", - "dev": true, - "requires": { - "brace-expansion": "^2.0.1" - } - } + "engines": { + "node": ">=18" } }, - "tmp": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.1.tgz", - "integrity": "sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ==", - "requires": { - "rimraf": "^3.0.0" + "node_modules/text-decoder": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/text-decoder/-/text-decoder-1.2.3.tgz", + "integrity": "sha512-3/o9z3X0X0fTupwsYvR03pJ/DjWuqqrfwBgTQzdWDiQSm9KitAyz/9WqsT2JQW7KV2m+bC2ol/zqpW37NHxLaA==", + "license": "Apache-2.0", + "dependencies": { + "b4a": "^1.6.4" } }, - "tmp-promise": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/tmp-promise/-/tmp-promise-3.0.3.tgz", - "integrity": "sha512-RwM7MoPojPxsOBYnyd2hy0bxtIlVrihNs9pj5SUvY8Zz1sQcQG2tG1hSr8PDxfgEB8RNKDhqbIlroIarSNDNsQ==", - "requires": { - "tmp": "^0.2.0" - } + "node_modules/tinyexec": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-0.3.2.tgz", + "integrity": "sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==", + "dev": true, + "license": "MIT" }, - "to-regex-range": { + "node_modules/to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dev": true, - "requires": { + "dependencies": { "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" } }, - "tr46": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-4.1.1.tgz", - "integrity": "sha512-2lv/66T7e5yNyhAAC4NaKe5nVavzuGJQVVtRYLyQ2OI8tsJ61PMLlelehb0wi2Hx6+hT/OJUWZcw8MjlSRnxvw==", - "requires": { - "punycode": "^2.3.0" + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", + "license": "MIT" + }, + "node_modules/ts-api-utils": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.1.0.tgz", + "integrity": "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.12" + }, + "peerDependencies": { + "typescript": ">=4.8.4" } }, - "ts-mockito": { + "node_modules/ts-mockito": { "version": "2.6.1", "resolved": "https://registry.npmjs.org/ts-mockito/-/ts-mockito-2.6.1.tgz", "integrity": "sha512-qU9m/oEBQrKq5hwfbJ7MgmVN5Gu6lFnIGWvpxSjrqq6YYEVv+RwVFWySbZMBgazsWqv6ctAyVBpo9TmAxnOEKw==", "dev": true, - "requires": { + "license": "MIT", + "dependencies": { "lodash": "^4.17.5" } }, - "tslib": { + "node_modules/tslib": { "version": "2.8.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", - "dev": true - }, - "tslint": { - "version": "6.1.3", - "resolved": "https://registry.npmjs.org/tslint/-/tslint-6.1.3.tgz", - "integrity": "sha512-IbR4nkT96EQOvKE2PW/djGz8iGNeJ4rF2mBfiYaR/nvUWYKJhLwimoJKgjIFEIDibBtOevj7BqCRL4oHeWWUCg==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.0.0", - "builtin-modules": "^1.1.1", - "chalk": "^2.3.0", - "commander": "^2.12.1", - "diff": "^4.0.1", - "glob": "^7.1.1", - "js-yaml": "^3.13.1", - "minimatch": "^3.0.4", - "mkdirp": "^0.5.3", - "resolve": "^1.3.2", - "semver": "^5.3.0", - "tslib": "^1.13.0", - "tsutils": "^2.29.0" - }, - "dependencies": { - "js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "dev": true, - "requires": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - } - }, - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - } + "dev": true, + "license": "0BSD" + }, + "node_modules/tsx": { + "version": "4.20.6", + "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.20.6.tgz", + "integrity": "sha512-ytQKuwgmrrkDTFP4LjR0ToE2nqgy886GpvRSpU0JAnrdBYppuY5rLkRUYPU1yCryb24SsKBTL/hlDQAEFVwtZg==", + "dev": true, + "license": "MIT", + "dependencies": { + "esbuild": "~0.25.0", + "get-tsconfig": "^4.7.5" + }, + "bin": { + "tsx": "dist/cli.mjs" + }, + "engines": { + "node": ">=18.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + } + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" } }, - "tsutils": { - "version": "2.29.0", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", - "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", + "node_modules/typedoc": { + "version": "0.28.14", + "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.28.14.tgz", + "integrity": "sha512-ftJYPvpVfQvFzpkoSfHLkJybdA/geDJ8BGQt/ZnkkhnBYoYW6lBgPQXu6vqLxO4X75dA55hX8Af847H5KXlEFA==", "dev": true, - "requires": { - "tslib": "^1.8.1" - }, + "license": "Apache-2.0", "dependencies": { - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - } + "@gerrit0/mini-shiki": "^3.12.0", + "lunr": "^2.3.9", + "markdown-it": "^14.1.0", + "minimatch": "^9.0.5", + "yaml": "^2.8.1" + }, + "bin": { + "typedoc": "bin/typedoc" + }, + "engines": { + "node": ">= 18", + "pnpm": ">= 10" + }, + "peerDependencies": { + "typescript": "5.0.x || 5.1.x || 5.2.x || 5.3.x || 5.4.x || 5.5.x || 5.6.x || 5.7.x || 5.8.x || 5.9.x" } }, - "tsx": { - "version": "4.19.2", - "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.19.2.tgz", - "integrity": "sha512-pOUl6Vo2LUq/bSa8S5q7b91cgNSjctn9ugq/+Mvow99qW6x/UZYwzxy/3NmqoT66eHYfCVvFvACC58UBPFf28g==", + "node_modules/typescript": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", + "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", "dev": true, - "requires": { - "esbuild": "~0.23.0", - "fsevents": "~2.3.3", - "get-tsconfig": "^4.7.5" + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" } }, - "typedoc": { - "version": "0.27.5", - "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.27.5.tgz", - "integrity": "sha512-x+fhKJtTg4ozXwKayh/ek4wxZQI/+2hmZUdO2i2NGDBRUflDble70z+ewHod3d4gRpXSO6fnlnjbDTnJk7HlkQ==", + "node_modules/typescript-eslint": { + "version": "8.46.3", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.46.3.tgz", + "integrity": "sha512-bAfgMavTuGo+8n6/QQDVQz4tZ4f7Soqg53RbrlZQEoAltYop/XR4RAts/I0BrO3TTClTSTFJ0wYbla+P8cEWJA==", "dev": true, - "requires": { - "@gerrit0/mini-shiki": "^1.24.0", - "lunr": "^2.3.9", - "markdown-it": "^14.1.0", - "minimatch": "^9.0.5", - "yaml": "^2.6.1" - }, + "license": "MIT", "dependencies": { - "brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0" - } - }, - "minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dev": true, - "requires": { - "brace-expansion": "^2.0.1" - } - } + "@typescript-eslint/eslint-plugin": "8.46.3", + "@typescript-eslint/parser": "8.46.3", + "@typescript-eslint/typescript-estree": "8.46.3", + "@typescript-eslint/utils": "8.46.3" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" } }, - "typescript": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.2.tgz", - "integrity": "sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==", - "dev": true - }, - "uc.micro": { + "node_modules/uc.micro": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-2.1.0.tgz", "integrity": "sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==", - "dev": true + "dev": true, + "license": "MIT" }, - "undici-types": { - "version": "6.20.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", - "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==" + "node_modules/undici-types": { + "version": "7.16.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz", + "integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==", + "license": "MIT" + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" + } }, - "v8-to-istanbul": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.2.0.tgz", - "integrity": "sha512-/EH/sDgxU2eGxajKdwLCDmQ4FWq+kpi3uCmBGpw1xJtnAxEjlD8j8PEiGWpCIMIs3ciNAgH0d3TTJiUkYzyZjA==", + "node_modules/v8-to-istanbul": { + "version": "9.3.0", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz", + "integrity": "sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==", "dev": true, - "requires": { + "license": "ISC", + "dependencies": { "@jridgewell/trace-mapping": "^0.3.12", "@types/istanbul-lib-coverage": "^2.0.1", "convert-source-map": "^2.0.0" + }, + "engines": { + "node": ">=10.12.0" } }, - "webidl-conversions": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", - "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==" + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", + "license": "BSD-2-Clause" + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "license": "MIT", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } }, - "whatwg-url": { - "version": "12.0.1", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-12.0.1.tgz", - "integrity": "sha512-Ed/LrqB8EPlGxjS+TrsXcpUond1mhccS3pchLhzSgPCnTimUCKj3IZE75pAs5m6heB2U2TMerKFUXheyHY+VDQ==", - "requires": { - "tr46": "^4.1.1", - "webidl-conversions": "^7.0.0" + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" } }, - "workerpool": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.5.1.tgz", - "integrity": "sha512-Fs4dNYcsdpYSAfVxhnl1L5zTksjvOJxtC5hzMNl+1t9B8hTJTdKDyZ5ju7ztgPy+ft9tBFXoOlDNiOT9WUXZlA==", - "dev": true + "node_modules/wrap-ansi": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } }, - "wrap-ansi": { + "node_modules/wrap-ansi-cjs": { + "name": "wrap-ansi", "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, - "requires": { + "license": "MIT", + "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - } + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "wrap-ansi-cjs": { - "version": "npm:wrap-ansi@7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "requires": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" + "node_modules/wrap-ansi-cjs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, + "license": "MIT" + }, + "node_modules/wrap-ansi-cjs/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - } + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-styles": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "wrappy": { + "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "license": "ISC" }, - "ws": { - "version": "8.18.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz", - "integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==", - "requires": {} + "node_modules/ws": { + "version": "8.18.3", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.3.tgz", + "integrity": "sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } }, - "y18n": { + "node_modules/y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "dev": true - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true + "dev": true, + "license": "ISC", + "engines": { + "node": ">=10" + } }, - "yaml": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.6.1.tgz", - "integrity": "sha512-7r0XPzioN/Q9kXBro/XPnA6kznR73DHq+GXh5ON7ZozRO6aMjbmiBuKste2wslTFkC5d1dw0GooOCepZXJ2SAg==", - "dev": true + "node_modules/yaml": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.1.tgz", + "integrity": "sha512-lcYcMxX2PO9XMGvAJkJ3OsNMw+/7FKes7/hgerGUYWIoWu5j/+YQqcZr5JnPZWzOsEBgMbSbiSTn/dv/69Mkpw==", + "dev": true, + "license": "ISC", + "bin": { + "yaml": "bin.mjs" + }, + "engines": { + "node": ">= 14.6" + } }, - "yargs": { + "node_modules/yargs": { "version": "17.7.2", "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", "dev": true, - "requires": { + "license": "MIT", + "dependencies": { "cliui": "^8.0.1", "escalade": "^3.1.1", "get-caller-file": "^2.0.5", @@ -5898,45 +4081,78 @@ "string-width": "^4.2.3", "y18n": "^5.0.5", "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" } }, - "yargs-parser": { + "node_modules/yargs-parser": { "version": "21.1.1", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", - "dev": true + "dev": true, + "license": "ISC", + "engines": { + "node": ">=12" + } }, - "yargs-unparser": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz", - "integrity": "sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==", + "node_modules/yargs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/yargs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, + "license": "MIT" + }, + "node_modules/yargs/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, - "requires": { - "camelcase": "^6.0.0", - "decamelize": "^4.0.0", - "flat": "^5.0.2", - "is-plain-obj": "^2.1.0" + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" }, + "engines": { + "node": ">=8" + } + }, + "node_modules/yargs/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", "dependencies": { - "camelcase": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", - "dev": true - }, - "decamelize": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz", - "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==", - "dev": true - } + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" } }, - "yocto-queue": { + "node_modules/yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } } } } diff --git a/package.json b/package.json index b4df512474..c801a5ad52 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kubernetes/client-node", - "version": "1.0.0", + "version": "2.0.0", "description": "NodeJS client for kubernetes", "type": "module", "repository": { @@ -8,36 +8,33 @@ "url": "https://github.com/kubernetes-client/javascript.git" }, "files": [ - "dist/*.ts", - "dist/*.js", - "dist/gen/*.ts", - "dist/gen/*.js", - "dist/gen/**/*.ts", - "dist/gen/**/*.js", - "README.md" + "dist/**/*.ts", + "dist/**/*.js", + "dist/**/*.map" ], "main": "dist/index.js", "types": "dist/index.d.ts", "scripts": { "format": "prettier --log-level error --write \"./src/**/*.ts\"", - "lint": "tslint --project \".\" && prettier --check \"./src/**/*.ts\" && tslint --project \"./examples/typescript\"", + "lint": "eslint \".\" && prettier --check \"./src/**/*.ts\"", "clean": "rm -Rf node_modules/ dist/", "build": "tsc", "build-with-tests": "tsc --project tsconfig-with-tests.json && cp 'src/test/echo space.js' dist/test", "generate": "./generate-client.sh", "watch": "tsc --watch", - "test": "c8 mocha", - "test-transpiled": "mocha --no-config dist", + "test": "c8 node --test --test-reporter=spec --import tsx src/*_test.ts", + "test-transpiled": "node --test --test-reporter=spec dist/*_test.js", + "integration-test": "tsx src/test/integration/index.ts", "prepare": "npm run build && husky", "prepack": "npm run build", - "docs": "typedoc src/gen/api" + "docs": "typedoc src/gen" }, "c8": { "include": [ "src/**/*.ts" ], "exclude": [ - "src/gen/*/**.ts", + "src/gen/**/*.ts", "src/index.ts", "src/*_test.ts", "src/test" @@ -59,44 +56,38 @@ "license": "Apache-2.0", "dependencies": { "@types/js-yaml": "^4.0.1", - "@types/node": "^22.0.0", - "@types/node-fetch": "^2.6.9", + "@types/node": "^24.0.0", + "@types/node-fetch": "^2.6.13", "@types/stream-buffers": "^3.0.3", - "@types/tar": "^6.1.1", - "@types/ws": "^8.5.4", "form-data": "^4.0.0", "hpagent": "^1.2.0", "isomorphic-ws": "^5.0.0", "js-yaml": "^4.1.0", - "jsonpath-plus": "^10.2.0", - "node-fetch": "^2.6.9", + "jsonpath-plus": "^10.3.0", + "node-fetch": "^2.7.0", "openid-client": "^6.1.3", "rfc4648": "^1.3.0", "socks-proxy-agent": "^8.0.4", "stream-buffers": "^3.0.2", - "tar": "^7.0.0", - "tmp-promise": "^3.0.2", - "ws": "^8.18.0" + "tar-fs": "^3.0.9", + "ws": "^8.18.2" }, "devDependencies": { - "@types/chai": "^5.0.0", - "@types/chai-as-promised": "^8.0.1", - "@types/mocha": "^10.0.1", + "@eslint/js": "^9.18.0", "@types/mock-fs": "^4.13.1", "c8": "^10.0.0", - "chai": "^5.1.2", - "chai-as-promised": "^8.0.0", + "eslint": "^9.18.0", + "eslint-plugin-erasable-syntax-only": "^0.4.0", "husky": "^9.0.6", - "mocha": "^11.0.1", "mock-fs": "^5.2.0", - "nock": "^13.2.9", + "nock": "^14.0.5", "prettier": "^3.0.0", "pretty-quick": "^4.0.0", "ts-mockito": "^2.3.1", - "tslint": "^6.1.3", "tsx": "^4.19.1", - "typedoc": "^0.27.1", - "typescript": "~5.7.2" + "typedoc": "^0.28.0", + "typescript": "~5.9.2", + "typescript-eslint": "^8.26.0" }, "bugs": { "url": "https://github.com/kubernetes-client/javascript/issues" @@ -112,8 +103,5 @@ "trailingComma": "all", "singleQuote": true, "arrowParens": "always" - }, - "overrides": { - "whatwg-url@<12.0.1": "12.0.1" } } diff --git a/pre-check.sh b/pre-check.sh index 1dfa663c4a..18b05d8120 100644 --- a/pre-check.sh +++ b/pre-check.sh @@ -2,13 +2,13 @@ branch=$(git rev-parse --abbrev-ref HEAD) -if [[ "${branch}" != "release-1.x" ]]; then - echo "This script can only be run on the release-1.x branch. Current branch is ${branch}" +if [[ "${branch}" != "main" ]]; then + echo "This script can only be run on the main branch. Current branch is ${branch}" exit 1 fi if ! git diff --quiet; then - echo "This script must only run on a clean master branch." + echo "This script must only run on a clean main branch." echo git status exit 1 diff --git a/settings b/settings index 7213d91b61..df06b3f371 100644 --- a/settings +++ b/settings @@ -21,7 +21,7 @@ export GEN_COMMIT=b461333bb57fa2dc2152f939ed70bac3cef2c1f6 export USERNAME=kubernetes # Kubernetes branch/tag to get the OpenAPI spec from. -export KUBERNETES_BRANCH="v1.32.0" +export KUBERNETES_BRANCH="v1.34.0" # client version for packaging and releasing. It can # be different than SPEC_VERSION. @@ -30,4 +30,4 @@ export CLIENT_VERSION="0.8-SNAPSHOT" # Name of the release package export PACKAGE_NAME="@kubernetes/node-client" -export OPENAPI_GENERATOR_COMMIT=06f0b68eeecf61f0a78e1a1db6f7db67c2872e4b +export OPENAPI_GENERATOR_COMMIT=d06ed32df0a30fe12a1c7ba98722c12e867b6060 diff --git a/src/attach_test.ts b/src/attach_test.ts index 57a6d53207..8bf3761898 100644 --- a/src/attach_test.ts +++ b/src/attach_test.ts @@ -1,4 +1,5 @@ -import { expect } from 'chai'; +import { describe, it } from 'node:test'; +import { strictEqual } from 'node:assert'; import WebSocket from 'isomorphic-ws'; import { ReadableStreamBuffer, WritableStreamBuffer } from 'stream-buffers'; import { anyFunction, anything, capture, instance, mock, verify, when } from 'ts-mockito'; @@ -73,8 +74,7 @@ describe('Attach', () => { await attach.attach(namespace, pod, container, osStream, errStream, isStream, false); const [, , outputFn] = capture(fakeWebSocketInterface.connect).last(); - /* tslint:disable:no-unused-expression */ - expect(outputFn).to.not.be.null; + strictEqual(typeof outputFn, 'function'); // this is redundant but needed for the compiler, sigh... if (!outputFn) { @@ -84,18 +84,18 @@ describe('Attach', () => { let buffer = Buffer.alloc(1024, 10); outputFn(WebSocketHandler.StdoutStream, buffer); - expect(osStream.size()).to.equal(1024); + strictEqual(osStream.size(), 1024); let buff = osStream.getContents() as Buffer; for (let i = 0; i < 1024; i++) { - expect(buff[i]).to.equal(10); + strictEqual(buff[i], 10); } buffer = Buffer.alloc(1024, 20); outputFn(WebSocketHandler.StderrStream, buffer); - expect(errStream.size()).to.equal(1024); + strictEqual(errStream.size(), 1024); buff = errStream.getContents() as Buffer; for (let i = 0; i < 1024; i++) { - expect(buff[i]).to.equal(20); + strictEqual(buff[i], 20); } const initialTerminalSize: TerminalSize = { height: 0, width: 0 }; diff --git a/src/azure_auth.ts b/src/azure_auth.ts index 1b69048ddd..2db7c6601e 100644 --- a/src/azure_auth.ts +++ b/src/azure_auth.ts @@ -29,7 +29,7 @@ export class AzureAuth implements Authenticator { public async applyAuthentication(user: User, opts: https.RequestOptions): Promise { const token = this.getToken(user); if (token) { - opts.headers!.Authorization = `Bearer ${token}`; + opts.headers!['Authorization'] = `Bearer ${token}`; } } diff --git a/src/azure_auth_test.ts b/src/azure_auth_test.ts index 619e1f6278..979c31dadc 100644 --- a/src/azure_auth_test.ts +++ b/src/azure_auth_test.ts @@ -1,5 +1,5 @@ -import { use, expect } from 'chai'; -import chaiAsPromised from 'chai-as-promised'; +import { beforeEach, describe, it } from 'node:test'; +import { rejects, strictEqual } from 'node:assert'; import { dirname, join } from 'node:path'; import { fileURLToPath } from 'node:url'; @@ -10,11 +10,9 @@ import { HttpMethod, RequestContext } from './index.js'; const __dirname = dirname(fileURLToPath(import.meta.url)); -use(chaiAsPromised); - describe('AzureAuth', () => { const testUrl1 = 'https://test1.com/'; - var auth: AzureAuth; + let auth: AzureAuth; beforeEach(() => { auth = new AzureAuth(); }); @@ -26,7 +24,7 @@ describe('AzureAuth', () => { }, } as User; - expect(auth.isAuthProvider(user)).to.equal(true); + strictEqual(auth.isAuthProvider(user), true); }); it('should be false for other user', () => { @@ -36,13 +34,13 @@ describe('AzureAuth', () => { }, } as User; - expect(auth.isAuthProvider(user)).to.equal(false); + strictEqual(auth.isAuthProvider(user), false); }); it('should be false for null user.authProvider', () => { const user = {} as User; - expect(auth.isAuthProvider(user)).to.equal(false); + strictEqual(auth.isAuthProvider(user), false); }); it('should populate from auth provider', async () => { @@ -60,15 +58,14 @@ describe('AzureAuth', () => { }, } as User, ); - let requestContext = new RequestContext(testUrl1, HttpMethod.GET); + const requestContext = new RequestContext(testUrl1, HttpMethod.GET); await config.applySecurityAuthentication(requestContext); - expect(requestContext.getHeaders()).to.not.be.undefined; - expect(requestContext.getHeaders()['Authorization']).to.equal(`Bearer ${token}`); + strictEqual(requestContext.getHeaders()?.['Authorization'], `Bearer ${token}`); requestContext.setHeaderParam('Host', 'foo.com'); await config.applySecurityAuthentication(requestContext); - expect(requestContext.getHeaders().Authorization).to.equal(`Bearer ${token}`); + strictEqual(requestContext.getHeaders().Authorization, `Bearer ${token}`); }); it('should populate from auth provider without expiry', async () => { @@ -85,11 +82,10 @@ describe('AzureAuth', () => { }, } as User, ); - let requestContext = new RequestContext(testUrl1, HttpMethod.GET); + const requestContext = new RequestContext(testUrl1, HttpMethod.GET); await config.applySecurityAuthentication(requestContext); - expect(requestContext.getHeaders()).to.not.be.undefined; - expect(requestContext.getHeaders()['Authorization']).to.equal(`Bearer ${token}`); + strictEqual(requestContext.getHeaders()?.['Authorization'], `Bearer ${token}`); }); it('should populate rejectUnauthorized=false when skipTLSVerify is set', async () => { @@ -106,11 +102,11 @@ describe('AzureAuth', () => { }, } as User, ); - let requestContext = new RequestContext(testUrl1, HttpMethod.GET); + const requestContext = new RequestContext(testUrl1, HttpMethod.GET); await config.applySecurityAuthentication(requestContext); - // @ts-ignore - expect(requestContext.getAgent().options.rejectUnauthorized).to.equal(false); + // @ts-expect-error + strictEqual(requestContext.getAgent().options.rejectUnauthorized, false); }); it('should not set rejectUnauthorized if skipTLSVerify is not set', async () => { @@ -129,14 +125,14 @@ describe('AzureAuth', () => { }, } as User, ); - let requestContext = new RequestContext(testUrl1, HttpMethod.GET); + const requestContext = new RequestContext(testUrl1, HttpMethod.GET); await config.applySecurityAuthentication(requestContext); - // @ts-ignore - expect(requestContext.getAgent().options.rejectUnauthorized).to.equal(undefined); + // @ts-expect-error + strictEqual(requestContext.getAgent().options.rejectUnauthorized, undefined); }); - it('should throw with expired token and no cmd', () => { + it('should throw with expired token and no cmd', async () => { const config = new KubeConfig(); config.loadFromClusterAndUser( { skipTLSVerify: false } as Cluster, @@ -149,14 +145,14 @@ describe('AzureAuth', () => { }, } as User, ); - let requestContext = new RequestContext(testUrl1, HttpMethod.GET); + const requestContext = new RequestContext(testUrl1, HttpMethod.GET); - return expect(config.applySecurityAuthentication(requestContext)).to.eventually.be.rejectedWith( - 'Token is expired!', - ); + await rejects(config.applySecurityAuthentication(requestContext), { + message: 'Token is expired!', + }); }); - it('should throw with bad command', () => { + it('should throw with bad command', async () => { const config = new KubeConfig(); config.loadFromClusterAndUser( { skipTLSVerify: false } as Cluster, @@ -171,11 +167,11 @@ describe('AzureAuth', () => { }, } as User, ); - let requestContext = new RequestContext(testUrl1, HttpMethod.GET); + const requestContext = new RequestContext(testUrl1, HttpMethod.GET); - return expect(config.applySecurityAuthentication(requestContext)).to.eventually.be.rejectedWith( - /Failed to refresh token/, - ); + await rejects(config.applySecurityAuthentication(requestContext), { + message: /Failed to refresh token/, + }); }); it('should exec when no cmd and token is not expired', async () => { @@ -193,7 +189,7 @@ describe('AzureAuth', () => { }, } as User, ); - let requestContext = new RequestContext(testUrl1, HttpMethod.GET); + const requestContext = new RequestContext(testUrl1, HttpMethod.GET); await config.applySecurityAuthentication(requestContext); }); @@ -221,11 +217,10 @@ describe('AzureAuth', () => { } as User, ); - let requestContext = new RequestContext(testUrl1, HttpMethod.GET); + const requestContext = new RequestContext(testUrl1, HttpMethod.GET); await config.applySecurityAuthentication(requestContext); - expect(requestContext.getHeaders()).to.not.be.undefined; - expect(requestContext.getHeaders()['Authorization']).to.equal(`Bearer ${token}`); + strictEqual(requestContext.getHeaders()?.['Authorization'], `Bearer ${token}`); }); it('should exec without access-token', async () => { // TODO: fix this test for Windows @@ -249,11 +244,10 @@ describe('AzureAuth', () => { }, } as User, ); - let requestContext = new RequestContext(testUrl1, HttpMethod.GET); + const requestContext = new RequestContext(testUrl1, HttpMethod.GET); await config.applySecurityAuthentication(requestContext); - expect(requestContext.getHeaders()).to.not.be.undefined; - expect(requestContext.getHeaders()['Authorization']).to.equal(`Bearer ${token}`); + strictEqual(requestContext.getHeaders()?.['Authorization'], `Bearer ${token}`); }); it('should exec without access-token', async () => { // TODO: fix this test for Windows @@ -277,11 +271,10 @@ describe('AzureAuth', () => { }, } as User, ); - let requestContext = new RequestContext(testUrl1, HttpMethod.GET); + const requestContext = new RequestContext(testUrl1, HttpMethod.GET); await config.applySecurityAuthentication(requestContext); - expect(requestContext.getHeaders()).to.not.be.undefined; - expect(requestContext.getHeaders()['Authorization']).to.equal(`Bearer ${token}`); + strictEqual(requestContext.getHeaders()?.['Authorization'], `Bearer ${token}`); }); it('should exec succesfully with spaces in cmd', async () => { // TODO: fix this test for Windows @@ -305,10 +298,9 @@ describe('AzureAuth', () => { }, } as User, ); - let requestContext = new RequestContext(testUrl1, HttpMethod.GET); + const requestContext = new RequestContext(testUrl1, HttpMethod.GET); await config.applySecurityAuthentication(requestContext); - expect(requestContext.getHeaders()).to.not.be.undefined; - expect(requestContext.getHeaders()['Authorization']).to.equal(`Bearer ${token}`); + strictEqual(requestContext.getHeaders()?.['Authorization'], `Bearer ${token}`); }); }); diff --git a/src/cache.ts b/src/cache.ts index 8b580d02ed..b8b1e89818 100644 --- a/src/cache.ts +++ b/src/cache.ts @@ -10,7 +10,7 @@ import { ObjectCallback, UPDATE, } from './informer.js'; -import { KubernetesObject } from './types.js'; +import { KubernetesObject, KubernetesListObject } from './types.js'; import { ObjectSerializer } from './serializer.js'; import { Watch } from './watch.js'; @@ -30,14 +30,26 @@ export class ListWatch implements ObjectCache, In private readonly callbackCache: { [key: string]: (ObjectCallback | ErrorCallback)[] } = {}; private request: AbortController | undefined; private stopped: boolean = false; + private readonly path: string; + private readonly watch: Watch; + private readonly listFn: ListPromise; + private readonly labelSelector?: string; + private readonly fieldSelector?: string; public constructor( - private readonly path: string, - private readonly watch: Watch, - private readonly listFn: ListPromise, + path: string, + watch: Watch, + listFn: ListPromise, autoStart: boolean = true, - private readonly labelSelector?: string, + labelSelector?: string, + fieldSelector?: string, ) { + this.path = path; + this.watch = watch; + this.listFn = listFn; + this.labelSelector = labelSelector; + this.fieldSelector = fieldSelector; + this.callbackCache[ADD] = []; this.callbackCache[UPDATE] = []; this.callbackCache[DELETE] = []; @@ -59,13 +71,16 @@ export class ListWatch implements ObjectCache, In this._stop(); } - public on(verb: 'add' | 'update' | 'delete' | 'change', cb: ObjectCallback): void; - public on(verb: 'error' | 'connect', cb: ErrorCallback): void; - public on(verb: string, cb: any): void { + public on(verb: ADD | UPDATE | DELETE | CHANGE, cb: ObjectCallback): void; + public on(verb: ERROR | CONNECT, cb: ErrorCallback): void; + public on( + verb: ADD | UPDATE | DELETE | CHANGE | ERROR | CONNECT, + cb: ObjectCallback | ErrorCallback, + ): void { if (verb === CHANGE) { - this.on('add', cb); - this.on('update', cb); - this.on('delete', cb); + this.on(ADD, cb); + this.on(UPDATE, cb); + this.on(DELETE, cb); return; } if (this.callbackCache[verb] === undefined) { @@ -131,7 +146,10 @@ export class ListWatch implements ObjectCache, In private async doneHandler(err: any): Promise { this._stop(); - if (err && err.statusCode === 410) { + if ( + err && + ((err as { statusCode?: number }).statusCode === 410 || (err as { code?: number }).code === 410) + ) { this.resourceVersion = ''; } else if (err) { this.callbackCache[ERROR].forEach((elt: ErrorCallback) => elt(err)); @@ -143,21 +161,31 @@ export class ListWatch implements ObjectCache, In } this.callbackCache[CONNECT].forEach((elt: ErrorCallback) => elt(undefined)); if (!this.resourceVersion) { - const promise = this.listFn(); - const list = await promise; + let list: KubernetesListObject; + try { + const promise = this.listFn(); + list = await promise; + } catch (err) { + this.callbackCache[ERROR].forEach((elt: ErrorCallback) => elt(err)); + return; + } this.objects = deleteItems(this.objects, list.items, this.callbackCache[DELETE].slice()); this.addOrUpdateItems(list.items); - this.resourceVersion = list.metadata!.resourceVersion || ''; + this.resourceVersion = list.metadata ? list.metadata!.resourceVersion || '' : ''; } const queryParams = { resourceVersion: this.resourceVersion, } as { resourceVersion: string | undefined; labelSelector: string | undefined; + fieldSelector: string | undefined; }; if (this.labelSelector !== undefined) { queryParams.labelSelector = ObjectSerializer.serialize(this.labelSelector, 'string'); } + if (this.fieldSelector !== undefined) { + queryParams.fieldSelector = ObjectSerializer.serialize(this.fieldSelector, 'string'); + } this.request = await this.watch.watch( this.path, queryParams, @@ -167,6 +195,9 @@ export class ListWatch implements ObjectCache, In } private addOrUpdateItems(items: T[]): void { + if (items === undefined || items === null) { + return; + } items.forEach((obj: T) => { addOrUpdateObject( this.objects, @@ -177,13 +208,18 @@ export class ListWatch implements ObjectCache, In }); } - private watchHandler(phase: string, obj: T, watchObj?: any): void { + private async watchHandler( + phase: string, + obj: T, + watchObj?: { type: string; object: KubernetesObject }, + ): Promise { switch (phase) { case 'ERROR': if ((obj as { code?: number }).code === 410) { this.resourceVersion = ''; } - break; + // We don't restart here, because it should be handled by the watch exiting if necessary + return; case 'ADDED': case 'MODIFIED': addOrUpdateObject( @@ -200,15 +236,16 @@ export class ListWatch implements ObjectCache, In // nothing to do, here for documentation, mostly. break; } - if (watchObj && watchObj.metadata) { - this.resourceVersion = watchObj.metadata.resourceVersion; - } + this.resourceVersion = obj.metadata ? obj.metadata!.resourceVersion || '' : ''; } } // exported for testing export function cacheMapFromList(newObjects: T[]): CacheMap { const objects: CacheMap = new Map(); + if (newObjects === undefined || newObjects === null) { + return objects; + } // build up the new list for (const obj of newObjects) { let namespaceObjects = objects.get(obj.metadata!.namespace || ''); diff --git a/src/cache_test.ts b/src/cache_test.ts index 777b296e92..9746425149 100644 --- a/src/cache_test.ts +++ b/src/cache_test.ts @@ -1,27 +1,17 @@ -import { expect, use } from 'chai'; -import chaiAsPromised from 'chai-as-promised'; - +import { describe, it } from 'node:test'; +import { deepStrictEqual, notStrictEqual, strictEqual, throws } from 'node:assert'; import mock from 'ts-mockito'; import { V1Namespace, V1NamespaceList, V1ObjectMeta, V1Pod, V1PodList, V1ListMeta } from './api.js'; -import { - deleteObject, - ListWatch, - deleteItems, - CacheMap, - cacheMapFromList, - addOrUpdateObject, -} from './cache.js'; +import { deleteObject, ListWatch, deleteItems, CacheMap, addOrUpdateObject } from './cache.js'; import { KubeConfig } from './config.js'; import { Cluster, Context, User } from './config_types.js'; import { ListPromise } from './informer.js'; -use(chaiAsPromised); - import nock from 'nock'; import { Watch } from './watch.js'; -const server = 'http://foo.company.com/'; +const server = 'https://foo.company.com/'; const fakeConfig: { clusters: Cluster[]; @@ -64,7 +54,9 @@ describe('ListWatchCache', () => { const verb = 'FOOBAR'; // The 'as any' is a hack to get around Typescript which prevents an unknown verb from being // passed. We want to test for Javascript clients also, where this is possible - expect(() => (lw as any).on(verb, (obj?: V1Namespace) => {})).to.throw(`Unknown verb: ${verb}`); + throws(() => (lw as any).on(verb, (obj?: V1Namespace) => {}), { + message: `Unknown verb: ${verb}`, + }); }); it('should perform basic caching', async () => { @@ -124,11 +116,10 @@ describe('ListWatchCache', () => { const cache = new ListWatch('/some/path', mock.instance(fakeWatch), listFn); await promise; const [pathOut, , watchHandler, doneHandler] = mock.capture(fakeWatch.watch).last(); - expect(pathOut).to.equal('/some/path'); - expect(cache.list()).to.deep.equal(list); - - expect(cache.list('default')).to.deep.equal(list); - expect(cache.list('non-existent')).to.deep.equal([]); + strictEqual(pathOut, '/some/path'); + deepStrictEqual(cache.list(), list); + deepStrictEqual(cache.list('default'), list); + deepStrictEqual(cache.list('non-existent'), []); watchHandler('ADDED', { metadata: { @@ -137,12 +128,11 @@ describe('ListWatchCache', () => { } as V1ObjectMeta, } as V1Pod); - expect(cache.list().length).to.equal(3); - expect(cache.get('name3')).to.not.equal(null); - - expect(cache.list('default').length).to.equal(2); - expect(cache.list('other').length).to.equal(1); - expect(cache.list('non-existent')).to.deep.equal([]); + strictEqual(cache.list().length, 3); + notStrictEqual(cache.get('name3'), null); + strictEqual(cache.list('default').length, 2); + strictEqual(cache.list('other').length, 1); + deepStrictEqual(cache.list('non-existent'), []); watchHandler('MODIFIED', { metadata: { @@ -151,12 +141,12 @@ describe('ListWatchCache', () => { resourceVersion: 'baz', } as V1ObjectMeta, } as V1Pod); - expect(cache.list().length).to.equal(3); + strictEqual(cache.list().length, 3); const obj3 = cache.get('name3'); - expect(obj3).to.not.equal(null); + notStrictEqual(obj3, null); if (obj3) { - expect(obj3.metadata!.name).to.equal('name3'); - expect(obj3.metadata!.resourceVersion).to.equal('baz'); + strictEqual(obj3.metadata!.name, 'name3'); + strictEqual(obj3.metadata!.resourceVersion, 'baz'); } watchHandler('DELETED', { @@ -165,11 +155,11 @@ describe('ListWatchCache', () => { namespace: 'default', } as V1ObjectMeta, } as V1Pod); - expect(cache.list().length).to.equal(2); - expect(cache.get('name2')).to.equal(undefined); + strictEqual(cache.list().length, 2); + strictEqual(cache.get('name2'), undefined); - expect(cache.list('default').length).to.equal(1); - expect(cache.list('other').length).to.equal(1); + strictEqual(cache.list('default').length, 1); + strictEqual(cache.list('other').length, 1); watchHandler('ADDED', { metadata: { @@ -181,9 +171,9 @@ describe('ListWatchCache', () => { const error = new Error('Gone') as Error & { statusCode: number | undefined }; error.statusCode = 410; await doneHandler(error); - expect(cache.list().length, 'all pod list').to.equal(1); - expect(cache.list('default').length, 'default pod list').to.equal(1); - expect(cache.list('other'), 'other pod list').to.deep.equal([]); + strictEqual(cache.list().length, 1); + strictEqual(cache.list('default').length, 1); + deepStrictEqual(cache.list('other'), []); }); it('should perform work as an informer', async () => { @@ -222,7 +212,7 @@ describe('ListWatchCache', () => { const informer = new ListWatch('/some/path', mock.instance(fakeWatch), listFn); await promise; const [pathOut, , watchHandler] = mock.capture(fakeWatch.watch).last(); - expect(pathOut).to.equal('/some/path'); + strictEqual(pathOut, '/some/path'); const addPromise = new Promise((resolve: (V1Namespace) => void) => { informer.on('add', (obj?: V1Namespace) => { @@ -245,6 +235,7 @@ describe('ListWatchCache', () => { watchHandler('ADDED', { metadata: { name: 'name3', + resourceVersion: 'blah', } as V1ObjectMeta, } as V1Namespace); @@ -258,16 +249,26 @@ describe('ListWatchCache', () => { watchHandler('DELETED', { metadata: { name: 'name2', + resourceVersion: '54321', } as V1ObjectMeta, } as V1Namespace); - return Promise.all([ - expect(addPromise).to.eventually.have.property('metadata').that.deep.equals({ name: 'name3' }), - expect(updatePromise) - .to.eventually.have.property('metadata') - .that.deep.equals({ name: 'name3', resourceVersion: 'baz' }), - expect(deletePromise).to.eventually.have.property('metadata').that.deep.equals({ name: 'name2' }), + const [addResult, updateResult, deleteResult] = await Promise.all([ + addPromise, + updatePromise, + deletePromise, ]); + deepStrictEqual(addResult.metadata, { name: 'name3', resourceVersion: 'blah' }); + deepStrictEqual(updateResult.metadata, { name: 'name3', resourceVersion: 'baz' }); + deepStrictEqual(deleteResult.metadata, { name: 'name2', resourceVersion: '54321' }); + strictEqual(informer.latestResourceVersion(), '54321'); + + watchHandler('BOOKMARK', { + metadata: { + resourceVersion: '5454', + }, + }); + strictEqual(informer.latestResourceVersion(), '5454'); }); it('should handle change events correctly', async () => { @@ -306,7 +307,7 @@ describe('ListWatchCache', () => { const informer = new ListWatch('/some/path', mock.instance(fakeWatch), listFn); await promise; const [pathOut, , watchHandler] = mock.capture(fakeWatch.watch).last(); - expect(pathOut).to.equal('/some/path'); + strictEqual(pathOut, '/some/path'); let count = 0; const changePromise = new Promise((resolve: (V1Namespace) => void) => { @@ -337,7 +338,7 @@ describe('ListWatchCache', () => { } as V1ObjectMeta, } as V1Namespace); - expect(changePromise).to.eventually.be.true; + strictEqual(await changePromise, true); }); it('should perform work as an informer with multiple handlers', async () => { @@ -364,7 +365,7 @@ describe('ListWatchCache', () => { const informer = new ListWatch('/some/path', mock.instance(fakeWatch), listFn); await promise; const [pathOut, , watchHandler] = mock.capture(fakeWatch.watch).last(); - expect(pathOut).to.equal('/some/path'); + strictEqual(pathOut, '/some/path'); const addPromise = new Promise((resolve: (V1Namespace) => void) => { informer.on('add', (obj?: V1Namespace) => { @@ -384,10 +385,9 @@ describe('ListWatchCache', () => { } as V1ObjectMeta, } as V1Namespace); - return Promise.all([ - expect(addPromise).to.eventually.have.property('metadata').that.deep.equals({ name: 'name3' }), - expect(addPromise2).to.eventually.have.property('metadata').that.deep.equals({ name: 'name3' }), - ]); + const [result1, result2] = await Promise.all([addPromise, addPromise2]); + deepStrictEqual(result1.metadata, { name: 'name3' }); + deepStrictEqual(result2.metadata, { name: 'name3' }); }); it('should perform work as an informer with initial list', async () => { @@ -436,9 +436,9 @@ describe('ListWatchCache', () => { await promise; const [pathOut, , , doneHandler] = mock.capture(fakeWatch.watch).last(); - expect(pathOut).to.equal('/some/path'); - expect(addObjects).to.deep.equal(list); - expect(updateObjects).to.deep.equal([]); + strictEqual(pathOut, '/some/path'); + deepStrictEqual(addObjects, list); + deepStrictEqual(updateObjects, []); promise = new Promise((resolve) => { mock.when( @@ -449,8 +449,8 @@ describe('ListWatchCache', () => { }); doneHandler(null); await promise; - expect(addObjects).to.deep.equal(list); - expect(updateObjects).to.deep.equal([]); + deepStrictEqual(addObjects, list); + deepStrictEqual(updateObjects, []); }); it('should perform work as an informer with initial list and delete after', async () => { @@ -508,9 +508,9 @@ describe('ListWatchCache', () => { await promise; const [pathOut, , , doneHandler] = mock.capture(fakeWatch.watch).last(); - expect(pathOut).to.equal('/some/path'); - expect(addObjects).to.deep.equal(list); - expect(updateObjects).to.deep.equal([]); + strictEqual(pathOut, '/some/path'); + deepStrictEqual(addObjects, list); + deepStrictEqual(updateObjects, []); promise = new Promise((resolve) => { mock.when( @@ -524,9 +524,9 @@ describe('ListWatchCache', () => { error.statusCode = 410; await doneHandler(error); await promise; - expect(addObjects).to.deep.equal(list); - expect(updateObjects).to.deep.equal(list2); - expect(deleteObjects).to.deep.equal([ + deepStrictEqual(addObjects, list); + deepStrictEqual(updateObjects, list2); + deepStrictEqual(deleteObjects, [ { metadata: { name: 'name2', @@ -574,14 +574,14 @@ describe('ListWatchCache', () => { const cache = new ListWatch('/some/path', mock.instance(fakeWatch), listFn); await promise; const [pathOut, , watchHandler] = mock.capture(fakeWatch.watch).last(); - expect(pathOut).to.equal('/some/path'); - expect(cache.list()).to.deep.equal(list); + strictEqual(pathOut, '/some/path'); + deepStrictEqual(cache.list(), list); - expect(cache.list('ns1').length).to.equal(1); - expect(cache.list('ns1')[0].metadata!.name).to.equal('name1'); + strictEqual(cache.list('ns1').length, 1); + strictEqual(cache.list('ns1')[0].metadata!.name, 'name1'); - expect(cache.list('ns2').length).to.equal(1); - expect(cache.list('ns2')[0].metadata!.name).to.equal('name2'); + strictEqual(cache.list('ns2').length, 1); + strictEqual(cache.list('ns2')[0].metadata!.name, 'name2'); watchHandler('ADDED', { metadata: { @@ -590,8 +590,8 @@ describe('ListWatchCache', () => { } as V1ObjectMeta, } as V1Pod); - expect(cache.list().length).to.equal(3); - expect(cache.get('name3', 'ns3')).to.not.equal(null); + strictEqual(cache.list().length, 3); + notStrictEqual(cache.get('name3', 'ns3'), null); watchHandler('MODIFIED', { metadata: { @@ -600,12 +600,12 @@ describe('ListWatchCache', () => { resourceVersion: 'baz', } as V1ObjectMeta, } as V1Pod); - expect(cache.list().length).to.equal(3); + strictEqual(cache.list().length, 3); const obj3 = cache.get('name3', 'ns3'); - expect(obj3).to.not.equal(null); + notStrictEqual(obj3, null); if (obj3) { - expect(obj3.metadata!.name).to.equal('name3'); - expect(obj3.metadata!.resourceVersion).to.equal('baz'); + strictEqual(obj3.metadata!.name, 'name3'); + strictEqual(obj3.metadata!.resourceVersion, 'baz'); } watchHandler('DELETED', { @@ -614,8 +614,8 @@ describe('ListWatchCache', () => { namespace: 'other-ns', } as V1ObjectMeta, } as V1Pod); - expect(cache.list().length).to.equal(3); - expect(cache.get('name2')).to.not.equal(null); + strictEqual(cache.list().length, 3); + notStrictEqual(cache.get('name2'), null); watchHandler('DELETED', { metadata: { @@ -623,9 +623,9 @@ describe('ListWatchCache', () => { namespace: 'ns2', } as V1ObjectMeta, } as V1Pod); - expect(cache.list().length).to.equal(2); - expect(cache.list('ns2').length).to.equal(0); - expect(cache.get('name2', 'ns2')).to.equal(undefined); + strictEqual(cache.list().length, 2); + strictEqual(cache.list('ns2').length, 0); + strictEqual(cache.get('name2', 'ns2'), undefined); }); it('should perform non-namespace caching', async () => { @@ -664,12 +664,11 @@ describe('ListWatchCache', () => { const cache = new ListWatch('/some/path', mock.instance(fakeWatch), listFn); await promise; const [pathOut, , watchHandler] = mock.capture(fakeWatch.watch).last(); - expect(pathOut).to.equal('/some/path'); - expect(cache.list()).to.deep.equal(list); - expect(cache.get('name1')).to.not.equal(null); - expect(cache.get('name2')).to.not.equal(null); - - expect(cache.list('ns1')).to.deep.equal([]); + strictEqual(pathOut, '/some/path'); + deepStrictEqual(cache.list(), list); + notStrictEqual(cache.get('name1'), null); + notStrictEqual(cache.get('name2'), null); + deepStrictEqual(cache.list('ns1'), []); watchHandler('ADDED', { metadata: { @@ -677,8 +676,8 @@ describe('ListWatchCache', () => { } as V1ObjectMeta, } as V1Namespace); - expect(cache.list().length).to.equal(3); - expect(cache.get('name3')).to.not.equal(null); + strictEqual(cache.list().length, 3); + notStrictEqual(cache.get('name3'), null); watchHandler('MODIFIED', { metadata: { @@ -686,12 +685,12 @@ describe('ListWatchCache', () => { resourceVersion: 'baz', } as V1ObjectMeta, } as V1Namespace); - expect(cache.list().length).to.equal(3); + strictEqual(cache.list().length, 3); const obj3 = cache.get('name3'); - expect(obj3).to.not.equal(null); + notStrictEqual(obj3, null); if (obj3) { - expect(obj3.metadata!.name).to.equal('name3'); - expect(obj3.metadata!.resourceVersion).to.equal('baz'); + strictEqual(obj3.metadata!.name, 'name3'); + strictEqual(obj3.metadata!.resourceVersion, 'baz'); } watchHandler('DELETED', { @@ -699,8 +698,8 @@ describe('ListWatchCache', () => { name: 'name2', } as V1ObjectMeta, } as V1Namespace); - expect(cache.list().length).to.equal(2); - expect(cache.get('name2', 'ns2')).to.equal(undefined); + strictEqual(cache.list().length, 2); + strictEqual(cache.get('name2', 'ns2'), undefined); }); it('should delete an object correctly', () => { @@ -728,21 +727,21 @@ describe('ListWatchCache', () => { namespace: 'ns1', }, } as V1Pod); - expect(objs.size).to.equal(2); + strictEqual(objs.size, 2); deleteObject(objs, { metadata: { name: 'name1', namespace: 'ns2', }, } as V1Pod); - expect(objs.size).to.equal(2); + strictEqual(objs.size, 2); deleteObject(objs, { metadata: { name: 'name1', namespace: 'ns1', }, } as V1Pod); - expect(objs.size).to.equal(1); + strictEqual(objs.size, 1); }); it('should not call handlers which have been unregistered', async () => { @@ -797,8 +796,113 @@ describe('ListWatchCache', () => { } as V1ObjectMeta, } as V1Namespace); - expect(addedList1.length).to.equal(2); - expect(addedList2.length).to.equal(1); + strictEqual(addedList1.length, 2); + strictEqual(addedList2.length, 1); + }); + + it('should unregister three verbs on "change"', async () => { + const fakeWatch = mock.mock(Watch); + const list: V1Namespace[] = []; + const listObj = { + metadata: { + resourceVersion: '12345', + } as V1ListMeta, + items: list, + } as V1NamespaceList; + const listFn: ListPromise = function (): Promise { + return new Promise((resolve) => { + resolve(listObj); + }); + }; + const watchCalled = new Promise((resolve) => { + mock.when( + fakeWatch.watch(mock.anything(), mock.anything(), mock.anything(), mock.anything()), + ).thenCall(resolve); + }); + const informer = new ListWatch('/some/path', mock.instance(fakeWatch), listFn); + + const changeList1: V1Namespace[] = []; + const changeToList1Fn = function (obj?: V1Namespace) { + changeList1.push(obj!); + }; + const changeList2: V1Namespace[] = []; + const changeToList2Fn = function (obj?: V1Namespace) { + changeList2.push(obj!); + }; + + informer.start(); + + await watchCalled; + const [, , watchHandler] = mock.capture(fakeWatch.watch).last(); + + informer.on('change', changeToList1Fn); + informer.on('change', changeToList2Fn); + + ['ADDED', 'DELETED', 'MODIFIED'].forEach((verb) => { + watchHandler(verb, { + metadata: { + name: 'name1', + } as V1ObjectMeta, + } as V1Namespace); + }); + strictEqual(changeList1.length, 3); + strictEqual(changeList2.length, 3); + + informer.off('change', changeToList2Fn); + + ['ADDED', 'DELETED', 'MODIFIED'].forEach((verb) => { + watchHandler(verb, { + metadata: { + name: 'name2', + } as V1ObjectMeta, + } as V1Namespace); + }); + + strictEqual(changeList1.length, 6); + strictEqual(changeList2.length, 3); + }); + + it('should throw on unknown verbs', async () => { + const fakeWatch = mock.mock(Watch); + const list: V1Namespace[] = []; + const listObj = { + metadata: { + resourceVersion: '12345', + } as V1ListMeta, + items: list, + } as V1NamespaceList; + const listFn: ListPromise = function (): Promise { + return new Promise((resolve) => { + resolve(listObj); + }); + }; + const informer = new ListWatch('/some/path', mock.instance(fakeWatch), listFn); + + throws(() => { + informer.on('random' as any /* trick Typescript to allow this */, (obj) => {}); + }, Error('Unknown verb: random')); + throws(() => { + informer.off('random' as any /* trick Typescript to allow this */, (obj) => {}); + }, Error('Unknown verb: random')); + }); + + it('should handle off with callbacks that are not registered', async () => { + const fakeWatch = mock.mock(Watch); + const list: V1Namespace[] = []; + const listObj = { + metadata: { + resourceVersion: '12345', + } as V1ListMeta, + items: list, + } as V1NamespaceList; + const listFn: ListPromise = function (): Promise { + return new Promise((resolve) => { + resolve(listObj); + }); + }; + const informer = new ListWatch('/some/path', mock.instance(fakeWatch), listFn); + informer.off('add', (obj) => {}); + // No assertion because we're just looking to see if it throws. }); it('mutating handlers in a callback should not affect those which remain', async () => { @@ -844,7 +948,7 @@ describe('ListWatchCache', () => { } as V1ObjectMeta, } as V1Namespace); - expect(addedList.length).to.equal(1); + strictEqual(addedList.length, 1); }); it('should resolve start promise after seeding the cache', async () => { @@ -878,9 +982,9 @@ describe('ListWatchCache', () => { }; const cache = new ListWatch('/some/path', mock.instance(fakeWatch), listFn, false); const startPromise: Promise = cache.start(); - expect(cache.list().length).to.equal(0); + strictEqual(cache.list().length, 0); await startPromise; - expect(cache.list().length).to.equal(2); + strictEqual(cache.list().length, 2); }); it('should only call update handlers once', async () => { @@ -939,9 +1043,9 @@ describe('ListWatchCache', () => { } as V1ObjectMeta, } as V1Namespace); - expect(adds).to.equal(2); - expect(addedList1.length).to.equal(2); - expect(addedList2.length).to.equal(1); + strictEqual(adds, 2); + strictEqual(addedList1.length, 2); + strictEqual(addedList2.length, 1); }); it('should not auto-restart after explicitly stopping until restarted again', async () => { @@ -1052,7 +1156,7 @@ describe('ListWatchCache', () => { mock.verify( fakeWatch.watch(mock.anything(), mock.anything(), mock.anything(), mock.anything()), ).once(); - expect(errorEmitted).to.equal(true); + strictEqual(errorEmitted, true); }); it('should not re-list if the watch can be restarted from the latest resourceVersion', async () => { @@ -1090,9 +1194,10 @@ describe('ListWatchCache', () => { { metadata: { name: 'name3', + resourceVersion: '23456', } as V1ObjectMeta, } as V1Namespace, - { metadata: { resourceVersion: '23456' } }, + { type: 'ADDED', metadata: { resourceVersion: '23456' } }, ); await informer.stop(); @@ -1105,7 +1210,7 @@ describe('ListWatchCache', () => { }); informer.start(); await promise; - expect(listCalls).to.be.equal(1); + strictEqual(listCalls, 1); }); it('should list if the watch cannot be restarted from the latest resourceVersion', async () => { @@ -1144,9 +1249,87 @@ describe('ListWatchCache', () => { { metadata: { name: 'name3', + resourceVersion: '23456', } as V1ObjectMeta, } as V1Namespace, - { metadata: { resourceVersion: '23456' } }, + { type: 'ADDED', metadata: { resourceVersion: '23456' } }, + ); + + await informer.stop(); + + let errorEmitted = false; + informer.on('error', () => (errorEmitted = true)); + + promise = new Promise((resolve) => { + mock.when( + fakeWatch.watch(mock.anything(), mock.anything(), mock.anything(), mock.anything()), + ).thenCall(() => { + resolve({}); + }); + }); + + informer.start(); + await promise; + + const [, , , doneHandler] = mock.capture(fakeWatch.watch).last(); + + const object = { + kind: 'Status', + apiVersion: 'v1', + metadata: {}, + status: 'Failure', + message: 'too old resource version: 12345 (1234)', + reason: 'Expired', + code: 410, + }; + await watchHandler('ERROR', object, { type: 'ERROR', object }); + await doneHandler(null); + + mock.verify( + fakeWatch.watch(mock.anything(), mock.anything(), mock.anything(), mock.anything()), + ).thrice(); + strictEqual(errorEmitted, false); + strictEqual(listCalls, 2); + }); + + it('should list if the watch errors from the last version', async () => { + const fakeWatch = mock.mock(Watch); + + let listCalls = 0; + const listFn: ListPromise = function (): Promise { + return new Promise((resolve, reject) => { + listCalls++; + resolve({ + metadata: { + resourceVersion: '12345', + } as V1ListMeta, + items: [], + } as V1NamespaceList); + }); + }; + let promise = new Promise((resolve) => { + mock.when( + fakeWatch.watch(mock.anything(), mock.anything(), mock.anything(), mock.anything()), + ).thenCall(() => { + resolve({}); + }); + }); + + const informer = new ListWatch('/some/path', mock.instance(fakeWatch), listFn, false); + + informer.start(); + await promise; + + const [, , watchHandler] = mock.capture(fakeWatch.watch).last(); + watchHandler( + 'ADDED', + { + metadata: { + name: 'name3', + resourceVersion: '23456', + } as V1ObjectMeta, + } as V1Namespace, + { type: 'ADDED', metadata: { resourceVersion: '23456' } }, ); await informer.stop(); @@ -1174,8 +1357,8 @@ describe('ListWatchCache', () => { mock.verify( fakeWatch.watch(mock.anything(), mock.anything(), mock.anything(), mock.anything()), ).thrice(); - expect(errorEmitted).to.equal(false); - expect(listCalls).to.be.equal(2); + strictEqual(errorEmitted, false); + strictEqual(listCalls, 2); }); it('should list if the watch cannot be restarted from the latest resourceVersion with an ERROR event', async () => { @@ -1220,6 +1403,8 @@ describe('ListWatchCache', () => { ); await informer.stop(); + strictEqual(listCalls, 1); + listCalls = 0; let errorEmitted = false; informer.on('error', () => (errorEmitted = true)); @@ -1243,8 +1428,8 @@ describe('ListWatchCache', () => { mock.verify( fakeWatch.watch(mock.anything(), mock.anything(), mock.anything(), mock.anything()), ).twice(); - expect(errorEmitted).to.equal(false); - expect(listCalls).to.be.equal(2); + strictEqual(errorEmitted, false); + strictEqual(listCalls, 2); }); it('should send label selector', async () => { @@ -1324,7 +1509,7 @@ describe('ListWatchCache', () => { const value = await donePromise; - expect(value).to.deep.equal({ + deepStrictEqual(value, { metadata: { labels: { app: 'foo3', @@ -1383,7 +1568,7 @@ describe('delete items', () => { }); deleteItems(objs, listB, [(obj?: V1Pod) => pods.push(obj!)]); - expect(pods).to.deep.equal(expected); + deepStrictEqual(pods, expected); }); it('should call the connect handler', async () => { @@ -1408,7 +1593,7 @@ describe('delete items', () => { }); informer.start(); - expect(connectPromise).to.eventually.be.true; + strictEqual(await connectPromise, true); }); it('does calls connect after a restart after an error', async () => { @@ -1461,7 +1646,7 @@ describe('delete items', () => { mock.verify( fakeWatch.watch(mock.anything(), mock.anything(), mock.anything(), mock.anything()), ).once(); - expect(errorEmitted).to.equal(true); + strictEqual(errorEmitted, true); const connectPromise = new Promise((resolve: (boolean) => void) => { cache.on('connect', (obj?: V1Namespace) => { @@ -1470,6 +1655,27 @@ describe('delete items', () => { }); cache.start(); - expect(connectPromise).to.eventually.be.true; + strictEqual(await connectPromise, true); + }); + + it('should correctly handle errors in the initial list', async () => { + const fake = mock.mock(Watch); + const requestErr = Error('request failed'); + const listFn: ListPromise = function (): Promise { + return new Promise((resolve, reject) => { + reject(requestErr); + }); + }; + const lw = new ListWatch('/some/path', fake, listFn); + let gotErr: Error | null = null; + const errCalled = new Promise((resolve, reject) => { + lw.on('error', (err) => { + gotErr = err; + resolve(); + }); + }); + await lw.start(); + await errCalled; + strictEqual(gotErr, requestErr); }); }); diff --git a/src/config.ts b/src/config.ts index a3c1603e91..b625642c41 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,5 +1,6 @@ import fs from 'node:fs'; import https from 'node:https'; +import http from 'node:http'; import yaml from 'js-yaml'; import net from 'node:net'; import path from 'node:path'; @@ -46,18 +47,18 @@ function fileExists(filepath: string): boolean { try { fs.accessSync(filepath); return true; - } catch (ignore) { + } catch { + // Ignore errors. return false; } } // TODO: the empty interface breaks the linter, but this type // will be needed later to get the object and cache features working again -// tslint:disable-next-line:no-empty-interface export interface ApiType {} export class KubeConfig implements SecurityAuthentication { - private static authenticators: Authenticator[] = [ + private authenticators: Authenticator[] = [ new AzureAuth(), new GoogleCloudPlatformAuth(), new ExecAuth(), @@ -65,6 +66,15 @@ export class KubeConfig implements SecurityAuthentication { new OpenIDConnectAuth(), ]; + // List of custom authenticators that can be added by the user + private custom_authenticators: Authenticator[] = []; + + // Optionally add additional external authenticators, you must do this + // before you load a kubeconfig file that references them. + public addAuthenticator(authenticator: Authenticator): void { + this.custom_authenticators.push(authenticator); + } + /** * The list of all known clusters */ @@ -168,7 +178,7 @@ export class KubeConfig implements SecurityAuthentication { headers, method: opts.method, timeout: opts.timeout, - }; + } as RequestInit; } public async applyToHTTPSOptions(opts: https.RequestOptions | WebSocket.ClientOptions): Promise { @@ -192,7 +202,10 @@ export class KubeConfig implements SecurityAuthentication { agentOptions.key = opts.key; agentOptions.pfx = opts.pfx; agentOptions.passphrase = opts.passphrase; - agentOptions.rejectUnauthorized = opts.rejectUnauthorized; + // Only set rejectUnauthorized if explicitly configured. When not set, fetch will use NODE_TLS_REJECT_UNAUTHORIZED env var + if (opts.rejectUnauthorized !== undefined) { + agentOptions.rejectUnauthorized = opts.rejectUnauthorized; + } // The ws docs say that it accepts anything that https.RequestOptions accepts, // but Typescript doesn't understand that idea (yet) probably could be fixed in // the typings, but for now just cast to any @@ -249,7 +262,10 @@ export class KubeConfig implements SecurityAuthentication { agentOptions.key = httpsOptions.key; agentOptions.pfx = httpsOptions.pfx; agentOptions.passphrase = httpsOptions.passphrase; - agentOptions.rejectUnauthorized = httpsOptions.rejectUnauthorized; + // Only set rejectUnauthorized if explicitly configured. When not set, fetch will use NODE_TLS_REJECT_UNAUTHORIZED env var + if (httpsOptions.rejectUnauthorized !== undefined) { + agentOptions.rejectUnauthorized = httpsOptions.rejectUnauthorized; + } context.setAgent(this.createAgent(cluster, agentOptions)); } @@ -394,7 +410,11 @@ export class KubeConfig implements SecurityAuthentication { this.contexts.push(ctx); } - public loadFromDefault(opts?: Partial, contextFromStartingConfig: boolean = false): void { + public loadFromDefault( + opts?: Partial, + contextFromStartingConfig: boolean = false, + platform: string = process.platform, + ): void { if (process.env.KUBECONFIG && process.env.KUBECONFIG.length > 0) { const files = process.env.KUBECONFIG.split(path.delimiter).filter((filename: string) => filename); this.loadFromFile(files[0], opts); @@ -405,7 +425,7 @@ export class KubeConfig implements SecurityAuthentication { } return; } - const home = findHomeDir(); + const home = findHomeDir(platform); if (home) { const config = path.join(home, '.kube', 'config'); if (fileExists(config)) { @@ -413,7 +433,7 @@ export class KubeConfig implements SecurityAuthentication { return; } } - if (process.platform === 'win32') { + if (platform === 'win32') { try { const envKubeconfigPathResult = child_process.spawnSync('wsl.exe', [ 'bash', @@ -430,7 +450,7 @@ export class KubeConfig implements SecurityAuthentication { return; } } - } catch (err) { + } catch { // Falling back to default kubeconfig } try { @@ -443,7 +463,7 @@ export class KubeConfig implements SecurityAuthentication { } return; } - } catch (err) { + } catch { // Falling back to alternative auth } } @@ -532,6 +552,10 @@ export class KubeConfig implements SecurityAuthentication { } else { throw new Error('Unsupported proxy type'); } + } else if (cluster?.server?.startsWith('http:') && cluster.skipTLSVerify) { + agent = new http.Agent(agentOptions); + } else if (cluster?.server?.startsWith('http:') && !cluster.skipTLSVerify) { + throw new Error('HTTP protocol is not allowed when skipTLSVerify is not set or false'); } else { agent = new https.Agent(agentOptions); } @@ -564,6 +588,11 @@ export class KubeConfig implements SecurityAuthentication { if (key) { opts.key = key; } + + if (user.impersonateUser != null) { + opts.headers ??= {}; + opts.headers['Impersonate-User'] = user.impersonateUser; + } } private async applyAuthorizationHeader( @@ -573,10 +602,16 @@ export class KubeConfig implements SecurityAuthentication { if (!user) { return; } - const authenticator = KubeConfig.authenticators.find((elt: Authenticator) => { + let authenticator = this.authenticators.find((elt: Authenticator) => { return elt.isAuthProvider(user); }); + if (!authenticator) { + authenticator = this.custom_authenticators.find((elt: Authenticator) => { + return elt.isAuthProvider(user); + }); + } + if (!opts.headers) { opts.headers = {}; } @@ -595,7 +630,7 @@ export class KubeConfig implements SecurityAuthentication { } } -type ApiConstructor = new (config: Configuration) => T; +export type ApiConstructor = new (config: Configuration) => T; export function makeAbsolutePath(root: string, file: string): string { if (!root || path.isAbsolute(file)) { @@ -628,14 +663,15 @@ function dropDuplicatesAndNils(a: string[]): string[] { } // Only public for testing. -export function findHomeDir(): string | null { - if (process.platform !== 'win32') { +export function findHomeDir(platform: string = process.platform): string | null { + if (platform !== 'win32') { if (process.env.HOME) { try { fs.accessSync(process.env.HOME); return process.env.HOME; - // tslint:disable-next-line:no-empty - } catch (ignore) {} + } catch { + // Ignore errors. + } } return null; } @@ -654,24 +690,27 @@ export function findHomeDir(): string | null { try { fs.accessSync(path.join(dir, '.kube', 'config')); return dir; - // tslint:disable-next-line:no-empty - } catch (ignore) {} + } catch { + // Ignore errors. + } } // 2. ...the first of %HOME%, %USERPROFILE%, %HOMEDRIVE%%HOMEPATH% that exists and is writeable is returned for (const dir of favourUserProfileList) { try { fs.accessSync(dir, fs.constants.W_OK); return dir; - // tslint:disable-next-line:no-empty - } catch (ignore) {} + } catch { + // Ignore errors. + } } // 3. ...the first of %HOME%, %USERPROFILE%, %HOMEDRIVE%%HOMEPATH% that exists is returned. for (const dir of favourUserProfileList) { try { fs.accessSync(dir); return dir; - // tslint:disable-next-line:no-empty - } catch (ignore) {} + } catch { + // Ignore errors. + } } // 4. if none of those locations exists, the first of // %HOME%, %USERPROFILE%, %HOMEDRIVE%%HOMEPATH% that is set is returned. diff --git a/src/config_test.ts b/src/config_test.ts index 34e94140a4..aab45ebbfe 100644 --- a/src/config_test.ts +++ b/src/config_test.ts @@ -1,14 +1,24 @@ +import { after, before, beforeEach, describe, it, mock } from 'node:test'; +import assert, { + deepEqual, + deepStrictEqual, + notStrictEqual, + rejects, + strictEqual, + throws, +} from 'node:assert'; +import child_process from 'node:child_process'; import { readFileSync } from 'node:fs'; import https from 'node:https'; +import http from 'node:http'; import { Agent, RequestOptions } from 'node:https'; import path, { dirname, join } from 'node:path'; import { fileURLToPath } from 'node:url'; -import { expect, use } from 'chai'; -import chaiAsPromised from 'chai-as-promised'; import mockfs from 'mock-fs'; -import { Headers } from 'node-fetch'; +import { Authenticator } from './auth.js'; +import fetch, { Headers } from 'node-fetch'; import { HttpMethod } from './index.js'; import { assertRequestAgentsEqual, assertRequestOptionsEqual } from './test/match-buffer.js'; import { CoreV1Api, RequestContext } from './api.js'; @@ -17,6 +27,7 @@ import { ActionOnInvalid, Cluster, newClusters, newContexts, newUsers, User } fr import { ExecAuth } from './exec_auth.js'; import { HttpProxyAgent, HttpsProxyAgent } from 'hpagent'; import { SocksProxyAgent } from 'socks-proxy-agent'; +import { AddressInfo } from 'node:net'; const kcFileName = 'testdata/kubeconfig.yaml'; const kc2FileName = 'testdata/kubeconfig-2.yaml'; @@ -30,74 +41,74 @@ const kcInvalidContextFileName = 'testdata/empty-context-kubeconfig.yaml'; const kcInvalidClusterFileName = 'testdata/empty-cluster-kubeconfig.yaml'; const kcTlsServerNameFileName = 'testdata/tls-server-name-kubeconfig.yaml'; -const __dirname = dirname(fileURLToPath(import.meta.url)); +const testCertFileName = 'testdata/certs/test-cert.pem'; +const testKeyFileName = 'testdata/certs/test-key.pem'; -use(chaiAsPromised); +const __dirname = dirname(fileURLToPath(import.meta.url)); -/* tslint:disable: no-empty */ describe('Config', () => {}); function validateFileLoad(kc: KubeConfig) { // check clusters const clusters = kc.getClusters(); - expect(clusters.length).to.equal(2, 'there are 2 clusters'); + strictEqual(clusters.length, 2, 'there are 2 clusters'); const cluster1 = clusters[0]; const cluster2 = clusters[1]; - expect(cluster1.name).to.equal('cluster1'); - expect(cluster1.caData).to.equal('Q0FEQVRB'); - expect(cluster1.server).to.equal('http://example.com/'); - expect(cluster1.proxyUrl).to.equal('socks5://localhost:1181'); - expect(cluster2.name).to.equal('cluster2'); - expect(cluster2.caData).to.equal('Q0FEQVRBMg=='); - expect(cluster2.server).to.equal('http://example2.com/'); - expect(cluster2.skipTLSVerify).to.equal(true); + strictEqual(cluster1.name, 'cluster1'); + strictEqual(cluster1.caData, 'Q0FEQVRB'); + strictEqual(cluster1.server, 'http://example.com/'); + strictEqual(cluster1.proxyUrl, 'socks5://localhost:1181'); + strictEqual(cluster2.name, 'cluster2'); + strictEqual(cluster2.caData, 'Q0FEQVRBMg=='); + strictEqual(cluster2.server, 'http://example2.com/'); + strictEqual(cluster2.skipTLSVerify, true); // check users const users = kc.getUsers(); - expect(users.length).to.equal(3, 'there are 3 users'); + strictEqual(users.length, 3, 'there are 3 users'); const user1 = users[0]; const user2 = users[1]; const user3 = users[2]; - expect(user1.name).to.equal('user1'); - expect(user1.certData).to.equal('VVNFUl9DQURBVEE='); - expect(user1.keyData).to.equal('VVNFUl9DS0RBVEE='); - expect(user2.name).to.equal('user2'); - expect(user2.certData).to.equal('VVNFUjJfQ0FEQVRB'); - expect(user2.keyData).to.equal('VVNFUjJfQ0tEQVRB'); - expect(user3.name).to.equal('user3'); - expect(user3.username).to.equal('foo'); - expect(user3.password).to.equal('bar'); + strictEqual(user1.name, 'user1'); + strictEqual(user1.certData, 'VVNFUl9DQURBVEE='); + strictEqual(user1.keyData, 'VVNFUl9DS0RBVEE='); + strictEqual(user2.name, 'user2'); + strictEqual(user2.certData, 'VVNFUjJfQ0FEQVRB'); + strictEqual(user2.keyData, 'VVNFUjJfQ0tEQVRB'); + strictEqual(user3.name, 'user3'); + strictEqual(user3.username, 'foo'); + strictEqual(user3.password, 'bar'); // check contexts const contexts = kc.getContexts(); - expect(contexts.length).to.equal(3, 'there are three contexts'); + strictEqual(contexts.length, 3, 'there are three contexts'); const context1 = contexts[0]; const context2 = contexts[1]; const context3 = contexts[2]; - expect(context1.name).to.equal('context1'); - expect(context1.user).to.equal('user1'); - expect(context1.namespace).to.equal(undefined); - expect(context1.cluster).to.equal('cluster1'); - expect(context2.name).to.equal('context2'); - expect(context2.user).to.equal('user2'); - expect(context2.namespace).to.equal('namespace2'); - expect(context2.cluster).to.equal('cluster2'); - expect(context3.name).to.equal('passwd'); - expect(context3.user).to.equal('user3'); - expect(context3.cluster).to.equal('cluster2'); - - expect(kc.getCurrentContext()).to.equal('context2'); + strictEqual(context1.name, 'context1'); + strictEqual(context1.user, 'user1'); + strictEqual(context1.namespace, undefined); + strictEqual(context1.cluster, 'cluster1'); + strictEqual(context2.name, 'context2'); + strictEqual(context2.user, 'user2'); + strictEqual(context2.namespace, 'namespace2'); + strictEqual(context2.cluster, 'cluster2'); + strictEqual(context3.name, 'passwd'); + strictEqual(context3.user, 'user3'); + strictEqual(context3.cluster, 'cluster2'); + + strictEqual(kc.getCurrentContext(), 'context2'); } describe('KubeConfig', () => { it('should return null on no contexts', () => { const kc = new KubeConfig() as any; kc.contexts = undefined; - expect(kc.getContextObject('non-existent')).to.be.null; + strictEqual(kc.getContextObject('non-existent'), null); }); describe('findObject', () => { it('should return null on undefined', () => { - expect(findObject(undefined as any, 'foo', 'bar')).to.equal(null); + strictEqual(findObject(undefined as any, 'foo', 'bar'), null); }); it('should find objects', () => { interface MyNamed { @@ -124,19 +135,38 @@ describe('KubeConfig', () => { // Validate that if the named object ('cluster' in this case) is inside we pick it out const obj1 = findObject(list, 'foo', 'cluster'); - expect(obj1).to.not.equal(null); - if (obj1) { - expect(obj1.some).to.equal('sub-object'); - } + notStrictEqual(obj1, null); + strictEqual(obj1!.some, 'sub-object'); // Validate that if the named object is missing, we just return the full object const obj2 = findObject(list, 'bar', 'context'); - expect(obj2).to.not.equal(null); - if (obj2) { - expect(obj2.some).to.equal('object'); - } + notStrictEqual(obj2, null); + strictEqual(obj2!.some, 'object'); // validate that we do the right thing if it is missing const obj3 = findObject(list, 'nonexistent', 'context'); - expect(obj3).to.equal(null); + strictEqual(obj3, null); + }); + }); + + describe('loadFromCluster', () => { + it('should load from cluster', () => { + process.env.KUBERNETES_SERVICE_HOST = 'example.com'; + process.env.KUBERNETES_SERVICE_PORT = '8080'; + + const kc = new KubeConfig(); + kc.loadFromCluster(); + const expectedCluster = { + caFile: '/var/run/secrets/kubernetes.io/serviceaccount/ca.crt', + name: 'inCluster', + server: 'http://example.com:8080/', + skipTLSVerify: false, + }; + + process.env.KUBERNETES_SERVICE_HOST = undefined; + process.env.KUBERNETES_SERVICE_PORT = undefined; + + strictEqual(kc.getCurrentContext(), 'inClusterContext'); + deepEqual(kc.getCurrentCluster(), expectedCluster); + deepEqual(kc.getCluster(kc.getContextObject(kc.getCurrentContext())!.cluster), expectedCluster); }); }); @@ -156,10 +186,10 @@ describe('KubeConfig', () => { kc.loadFromClusterAndUser(cluster, user); const clusterOut = kc.getCurrentCluster(); - expect(clusterOut).to.equal(cluster); + strictEqual(clusterOut, cluster); const userOut = kc.getCurrentUser(); - expect(userOut).to.equal(user); + strictEqual(userOut, user); }); }); @@ -190,10 +220,10 @@ describe('KubeConfig', () => { }); const clusterOut = kc.getCurrentCluster(); - expect(clusterOut).to.equal(cluster); + strictEqual(clusterOut, cluster); const userOut = kc.getCurrentUser(); - expect(userOut).to.equal(user); + strictEqual(userOut, user); }); }); @@ -205,24 +235,24 @@ describe('KubeConfig', () => { }); it('should fail to load a missing kubeconfig file', () => { const kc = new KubeConfig(); - expect(kc.loadFromFile.bind('missing.yaml')).to.throw(); + throws(() => kc.loadFromFile('missing.yaml')); }); describe('filter vs throw tests', () => { it('works for invalid users', () => { const kc = new KubeConfig(); kc.loadFromFile(kcNoUserFileName, { onInvalidEntry: ActionOnInvalid.FILTER }); - expect(kc.getUsers().length).to.be.eq(2); + strictEqual(kc.getUsers().length, 2); }); it('works for invalid contexts', () => { const kc = new KubeConfig(); kc.loadFromFile(kcInvalidContextFileName, { onInvalidEntry: ActionOnInvalid.FILTER }); - expect(kc.getContexts().length).to.be.eq(2); + strictEqual(kc.getContexts().length, 2); }); it('works for invalid clusters', () => { const kc = new KubeConfig(); kc.loadFromFile(kcInvalidClusterFileName, { onInvalidEntry: ActionOnInvalid.FILTER }); - expect(kc.getClusters().length).to.be.eq(1); + strictEqual(kc.getClusters().length, 1); }); }); }); @@ -268,14 +298,15 @@ describe('KubeConfig', () => { rejectUnauthorized: false, }); - expect(requestInit.method).to.equal('POST'); - expect(requestInit.timeout).to.equal(5); - expect((requestInit.headers as Headers).raw()).to.deep.equal({ - Authorization: ['Basic Zm9vOmJhcg=='], - list: ['a', 'b'], - number: ['5'], - string: ['str'], - }); + strictEqual(requestInit.method, 'POST'); + // timeout has been removed from the spec. + strictEqual((requestInit as any).timeout, 5); + const headers = requestInit.headers as Headers; + strictEqual(Array.from(headers).length, 4); + strictEqual(headers.get('Authorization'), 'Basic Zm9vOmJhcg=='); + strictEqual(headers.get('list'), 'a, b'); + strictEqual(headers.get('number'), '5'); + strictEqual(headers.get('string'), 'str'); assertRequestAgentsEqual(requestInit.agent as Agent, expectedAgent); }); }); @@ -285,8 +316,10 @@ describe('KubeConfig', () => { const kc = new KubeConfig(); kc.loadFromFile(kcTlsServerNameFileName); + const requestContext = new RequestContext('https://kube.example.com/', HttpMethod.GET); const opts: https.RequestOptions = {}; await kc.applyToHTTPSOptions(opts); + await kc.applySecurityAuthentication(requestContext); const expectedAgent = new https.Agent({ ca: Buffer.from('CADATA2', 'utf-8'), @@ -306,6 +339,7 @@ describe('KubeConfig', () => { }; assertRequestOptionsEqual(opts, expectedOptions); + strictEqual((requestContext.getAgent()! as any).options.servername, 'kube.example2.com'); }); it('should apply cert configs', async () => { const kc = new KubeConfig(); @@ -375,11 +409,11 @@ describe('KubeConfig', () => { const expectedProxyHost = 'example'; const expectedProxyPort = 1187; - expect(rc.getAgent()).to.be.instanceOf(SocksProxyAgent); + strictEqual(rc.getAgent() instanceof SocksProxyAgent, true); const agent = rc.getAgent() as SocksProxyAgent; - expect(agent.options.ca?.toString()).to.equal(expectedCA.toString()); - expect(agent.proxy.host).to.equal(expectedProxyHost); - expect(agent.proxy.port).to.equal(expectedProxyPort); + strictEqual(agent.options.ca?.toString(), expectedCA.toString()); + strictEqual(agent.proxy.host, expectedProxyHost); + strictEqual(agent.proxy.port, expectedProxyPort); }); it('should apply https proxy', async () => { const kc = new KubeConfig(); @@ -393,10 +427,10 @@ describe('KubeConfig', () => { const expectedCA = Buffer.from('CADAT@', 'utf-8'); const expectedProxyHref = 'http://example:9443/'; - expect(rc.getAgent()).to.be.instanceOf(HttpsProxyAgent); + strictEqual(rc.getAgent() instanceof HttpsProxyAgent, true); const agent = rc.getAgent() as HttpsProxyAgent; - expect(agent.options.ca?.toString()).to.equal(expectedCA.toString()); - expect((agent as any).proxy.href).to.equal(expectedProxyHref); + strictEqual(agent.options.ca?.toString(), expectedCA.toString()); + strictEqual((agent as any).proxy.href, expectedProxyHref); }); it('should apply http proxy', async () => { const kc = new KubeConfig(); @@ -410,10 +444,10 @@ describe('KubeConfig', () => { const expectedCA = Buffer.from('CADAT@', 'utf-8'); const expectedProxyHref = 'http://example:8080/'; - expect(rc.getAgent()).to.be.instanceOf(HttpProxyAgent); + strictEqual(rc.getAgent() instanceof HttpProxyAgent, true); const agent = rc.getAgent() as HttpProxyAgent; - expect((agent as any).options.ca?.toString()).to.equal(expectedCA.toString()); - expect((agent as any).proxy.href).to.equal(expectedProxyHref); + strictEqual((agent as any).options.ca?.toString(), expectedCA.toString()); + strictEqual((agent as any).proxy.href, expectedProxyHref); }); it('should throw an error if proxy-url is provided but the server protocol is not http or https', async () => { const kc = new KubeConfig(); @@ -423,72 +457,175 @@ describe('KubeConfig', () => { const testServerName = 'https://example.com/'; const rc = new RequestContext(testServerName, HttpMethod.GET); - return expect(kc.applySecurityAuthentication(rc)).to.be.rejectedWith('Unsupported proxy type'); + return rejects(kc.applySecurityAuthentication(rc), { + message: 'Unsupported proxy type', + }); + }); + it('should apply http agent if cluster.server starts with http and no proxy-url is provided', async () => { + const kc = new KubeConfig(); + kc.loadFromFile(kcProxyUrl); + kc.setCurrentContext('contextE'); + + const testServerName = 'http://example.com/'; + const rc = new RequestContext(testServerName, HttpMethod.GET); + + await kc.applySecurityAuthentication(rc); + + strictEqual(rc.getAgent() instanceof http.Agent, true); + }); + it('should throw an error if cluster.server starts with http, no proxy-url is provided and insecure-skip-tls-verify is not set', async () => { + const kc = new KubeConfig(); + kc.loadFromFile(kcProxyUrl); + kc.setCurrentContext('contextF'); + + const testServerName = 'http://example.com/'; + const rc = new RequestContext(testServerName, HttpMethod.GET); + + await assert.rejects(kc.applySecurityAuthentication(rc), Error); + }); + it('should apply https agent if cluster.server starts with https and no proxy-url is provided', async () => { + const kc = new KubeConfig(); + kc.loadFromFile(kcProxyUrl); + kc.setCurrentContext('contextG'); + + const testServerName = 'https://example.com/'; + const rc = new RequestContext(testServerName, HttpMethod.GET); + + await kc.applySecurityAuthentication(rc); + + strictEqual(rc.getAgent() instanceof https.Agent, true); + }); + + it('should apply NODE_TLS_REJECT_UNAUTHORIZED from environment to agent', async () => { + const { server, host, port } = await createTestHttpsServer((req, res) => { + res.setHeader('Content-Type', 'application/json'); + if (req.url?.includes('/api/v1/namespaces')) { + res.writeHead(200); + res.end( + JSON.stringify({ + apiVersion: 'v1', + kind: 'NamespaceList', + items: [ + { + apiVersion: 'v1', + kind: 'Namespace', + metadata: { name: 'default' }, + }, + ], + }), + ); + } else { + res.writeHead(200); + res.end('ok'); + } + }); + + const originalValue = process.env.NODE_TLS_REJECT_UNAUTHORIZED; + process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; // lgtm[js/disabling-certificate-validation] + after(() => { + process.env.NODE_TLS_REJECT_UNAUTHORIZED = originalValue; + server.close(); + }); + + const kc = new KubeConfig(); + kc.loadFromClusterAndUser( + { + name: 'test-cluster', + server: `https://${host}:${port}`, + // ignore skipTLSVerify specified from environment variables + } as Cluster, + { + name: 'test-user', + token: 'test-token', + }, + ); + const coreV1Api = kc.makeApiClient(CoreV1Api); + const namespaceList = await coreV1Api.listNamespace(); + + strictEqual(namespaceList.kind, 'NamespaceList'); + strictEqual(namespaceList.items.length, 1); + strictEqual(namespaceList.items[0].metadata?.name, 'default'); + + const res2 = await fetch(`https://${host}:${port}`, await kc.applyToFetchOptions({})); + strictEqual(res2.status, 200); + strictEqual(await res2.text(), 'ok'); }); }); describe('loadClusterConfigObjects', () => { it('should fail if name is missing from cluster', () => { - expect(() => { - newClusters([ - { - name: 'some-cluster', - cluster: { - server: 'some.server.com', + throws( + () => { + newClusters([ + { + name: 'some-cluster', + cluster: { + server: 'some.server.com', + }, }, - }, - { - foo: 'bar', - }, - ]); - }).to.throw('clusters[1].name is missing'); + { + foo: 'bar', + }, + ]); + }, + { message: 'clusters[1].name is missing' }, + ); }); it('should fail if cluster is missing from cluster', () => { - expect(() => { - newClusters([ - { - name: 'some-cluster', - cluster: { - server: 'some.server.com', + throws( + () => { + newClusters([ + { + name: 'some-cluster', + cluster: { + server: 'some.server.com', + }, }, - }, - { - name: 'bar', - }, - ]); - }).to.throw('clusters[1].cluster is missing'); + { + name: 'bar', + }, + ]); + }, + { message: 'clusters[1].cluster is missing' }, + ); }); it('should fail if cluster.server is missing from cluster', () => { - expect(() => { - newClusters([ - { - name: 'some-cluster', - cluster: { - server: 'some.server.com', + throws( + () => { + newClusters([ + { + name: 'some-cluster', + cluster: { + server: 'some.server.com', + }, }, - }, - { - name: 'bar', - cluster: {}, - }, - ]); - }).to.throw('clusters[1].cluster.server is missing'); + { + name: 'bar', + cluster: {}, + }, + ]); + }, + { message: 'clusters[1].cluster.server is missing' }, + ); }); }); describe('loadUserConfigObjects', () => { it('should fail if name is missing from user', () => { - expect(() => { - newUsers([ - { - name: 'some-user', - user: {}, - }, - { - foo: 'bar', - }, - ]); - }).to.throw('users[1].name is missing'); + throws( + () => { + newUsers([ + { + name: 'some-user', + user: {}, + }, + { + foo: 'bar', + }, + ]); + }, + { message: 'users[1].name is missing' }, + ); }); it('should load correctly with just name', () => { const name = 'some-name'; @@ -497,7 +634,7 @@ describe('KubeConfig', () => { name, }, ]); - expect(name).to.equal(users[0].name); + strictEqual(name, users[0].name); }); it('should load token correctly', () => { const name = 'some-name'; @@ -510,8 +647,8 @@ describe('KubeConfig', () => { }, }, ]); - expect(name).to.equal(users[0].name); - expect(token).to.equal(users[0].token); + strictEqual(name, users[0].name); + strictEqual(token, users[0].token); }); it('should load token file correctly', () => { const name = 'some-name'; @@ -530,8 +667,8 @@ describe('KubeConfig', () => { }, ]); mockfs.restore(); - expect(name).to.equal(users[0].name); - expect(token).to.equal(users[0].token); + strictEqual(name, users[0].name); + strictEqual(token, users[0].token); }); it('should load extra auth stuff correctly', () => { const authProvider = 'authProvider'; @@ -556,14 +693,32 @@ describe('KubeConfig', () => { }, }, ]); - expect(authProvider).to.equal(users[0].authProvider); - expect(certData).to.equal(users[0].certData); - expect(certFile).to.equal(users[0].certFile); - expect(keyData).to.equal(users[0].keyData); - expect(keyFile).to.equal(users[0].keyFile); - expect(password).to.equal(users[0].password); - expect(username).to.equal(users[0].username); - expect(name).to.equal(users[0].name); + strictEqual(authProvider, users[0].authProvider); + strictEqual(certData, users[0].certData); + strictEqual(certFile, users[0].certFile); + strictEqual(keyData, users[0].keyData); + strictEqual(keyFile, users[0].keyFile); + strictEqual(password, users[0].password); + strictEqual(username, users[0].username); + strictEqual(name, users[0].name); + }); + it('should load impersonation information', () => { + const users = newUsers([ + { + name: 'some-name-1', + user: { + as: 'impersonated-user', + }, + }, + { + name: 'some-name-2', + user: {}, + }, + ]); + strictEqual('some-name-1', users[0].name); + strictEqual('impersonated-user', users[0].impersonateUser); + strictEqual('some-name-2', users[1].name); + strictEqual(undefined, users[1].impersonateUser); }); }); @@ -582,7 +737,7 @@ describe('KubeConfig', () => { mockfs.restore(); process.env.HOME = currentHome; - expect(home).to.equal(expectedHome); + strictEqual(home, expectedHome); }); }); @@ -619,7 +774,7 @@ describe('KubeConfig', () => { it('should return null if no home-ish env vars are set', () => { const dir = findHomeDir(); - expect(dir).to.equal(null); + strictEqual(dir, null); }); describe('look for an existing .kube/config', () => { @@ -644,7 +799,7 @@ describe('KubeConfig', () => { const home = findHomeDir(); mockfs.restore(); - expect(home).to.equal(dir); + strictEqual(home, dir); }); it('should favor HOME when present', () => { const dir = process.env.HOME as string; @@ -656,7 +811,7 @@ describe('KubeConfig', () => { const home = findHomeDir(); mockfs.restore(); - expect(home).to.equal(dir); + strictEqual(home, dir); }); it('should load from HOMEDRIVE/HOMEPATH if present', () => { @@ -667,7 +822,7 @@ describe('KubeConfig', () => { const home = findHomeDir(); mockfs.restore(); - expect(home).to.equal(dir); + strictEqual(home, dir); }); it('should favor HOMEDRIVE/HOMEPATH over USERPROFILE', () => { @@ -679,7 +834,7 @@ describe('KubeConfig', () => { const home = findHomeDir(); mockfs.restore(); - expect(home).to.equal(dir); + strictEqual(home, dir); }); it('should load from USERPROFILE if present', () => { @@ -690,7 +845,7 @@ describe('KubeConfig', () => { const home = findHomeDir(); mockfs.restore(); - expect(home).to.equal(dir); + strictEqual(home, dir); }); }); @@ -716,7 +871,7 @@ describe('KubeConfig', () => { const home = findHomeDir(); mockfs.restore(); - expect(home).to.equal(dir); + strictEqual(home, dir); }); it('should load from USERPROFILE if present', () => { allDirs[homeDrive] = 'data'; @@ -726,7 +881,7 @@ describe('KubeConfig', () => { const home = findHomeDir(); mockfs.restore(); - expect(home).to.equal(process.env.USERPROFILE); + strictEqual(home, process.env.USERPROFILE); }); it('should load from homeDrive if present', () => { allDirs[homeDrive] = 'data'; @@ -735,7 +890,7 @@ describe('KubeConfig', () => { const home = findHomeDir(); mockfs.restore(); - expect(home).to.equal(homeDrive); + strictEqual(home, homeDrive); }); it('should return HOME when no home-ish directories are present', () => { mockfs({}); @@ -743,62 +898,71 @@ describe('KubeConfig', () => { const home = findHomeDir(); mockfs.restore(); - expect(home).to.equal(process.env.HOME); + strictEqual(home, process.env.HOME); }); }); }); describe('loadContextConfigObjects', () => { it('should fail if name is missing from context', () => { - expect(() => { - newContexts([ - { - name: 'some-cluster', - context: { - cluster: 'foo', - user: 'bar', + throws( + () => { + newContexts([ + { + name: 'some-cluster', + context: { + cluster: 'foo', + user: 'bar', + }, }, - }, - { - foo: 'bar', - }, - ]); - }).to.throw('contexts[1].name is missing'); + { + foo: 'bar', + }, + ]); + }, + { message: 'contexts[1].name is missing' }, + ); }); it('should fail if context is missing from context', () => { - expect(() => { - newContexts([ - { - name: 'some-cluster', - context: { - cluster: 'foo', - user: 'bar', + throws( + () => { + newContexts([ + { + name: 'some-cluster', + context: { + cluster: 'foo', + user: 'bar', + }, }, - }, - { - name: 'bar', - }, - ]); - }).to.throw('contexts[1].context is missing'); + { + name: 'bar', + }, + ]); + }, + { message: 'contexts[1].context is missing' }, + ); }); it('should fail if context is missing from context', () => { - expect(() => { - newContexts([ - { - name: 'some-cluster', - context: { - cluster: 'foo', - user: 'bar', + throws( + () => { + newContexts([ + { + name: 'some-cluster', + context: { + cluster: 'foo', + user: 'bar', + }, }, - }, - { - name: 'bar', - context: { - user: 'user', + { + name: 'bar', + context: { + user: 'user', + }, }, - }, - ]); - }).to.throw('contexts[1].context.cluster is missing'); + ]); + }, + { message: 'contexts[1].context.cluster is missing' }, + ); }); }); @@ -812,7 +976,7 @@ describe('KubeConfig', () => { const opts = {} as https.RequestOptions; await config.applyToHTTPSOptions(opts); - expect(opts.auth).to.equal(`${user}:${passwd}`); + strictEqual(opts.auth, `${user}:${passwd}`); }); it('should populate options for request', async () => { const config = new KubeConfig(); @@ -832,12 +996,8 @@ describe('KubeConfig', () => { await config.applyToHTTPSOptions(opts); - /* tslint:disable no-unused-expression*/ - expect(opts.auth).to.not.be.undefined; - if (opts.auth) { - expect(opts.auth).to.equal(`${user}:${passwd}`); - } - expect(opts.rejectUnauthorized).to.equal(false); + strictEqual(opts.auth, `${user}:${passwd}`); + strictEqual(opts.rejectUnauthorized, false); }); it('should not populate strict ssl', async () => { const config = new KubeConfig(); @@ -847,7 +1007,7 @@ describe('KubeConfig', () => { await config.applyToHTTPSOptions(opts); - expect(opts.rejectUnauthorized).to.equal(undefined); + strictEqual(opts.rejectUnauthorized, undefined); }); it('should populate from token', async () => { const config = new KubeConfig(); @@ -861,10 +1021,7 @@ describe('KubeConfig', () => { const opts = {} as RequestOptions; await config.applyToHTTPSOptions(opts); - expect(opts.headers).to.not.be.undefined; - if (opts.headers) { - expect(opts.headers.Authorization).to.equal(`Bearer ${token}`); - } + strictEqual(opts.headers!['Authorization'], `Bearer ${token}`); }); it('should populate from auth provider', async () => { const config = new KubeConfig(); @@ -884,14 +1041,11 @@ describe('KubeConfig', () => { const opts = {} as RequestOptions; await config.applyToHTTPSOptions(opts); - expect(opts.headers).to.not.be.undefined; - if (opts.headers) { - expect(opts.headers.Authorization).to.equal(`Bearer ${token}`); - } + strictEqual(opts.headers!['Authorization'], `Bearer ${token}`); opts.headers = {}; opts.headers.Host = 'foo.com'; await config.applyToHTTPSOptions(opts); - expect(opts.headers.Authorization).to.equal(`Bearer ${token}`); + strictEqual(opts.headers!['Authorization'], `Bearer ${token}`); }); it('should populate from auth provider without expirty', async () => { @@ -911,10 +1065,7 @@ describe('KubeConfig', () => { const opts = {} as RequestOptions; await config.applyToHTTPSOptions(opts); - expect(opts.headers).to.not.be.undefined; - if (opts.headers) { - expect(opts.headers.Authorization).to.equal(`Bearer ${token}`); - } + strictEqual(opts.headers!['Authorization'], `Bearer ${token}`); }); it('should populate rejectUnauthorized=false when skipTLSVerify is set', async () => { @@ -934,7 +1085,7 @@ describe('KubeConfig', () => { const opts = {} as RequestOptions; await config.applyToHTTPSOptions(opts); - expect(opts.rejectUnauthorized).to.equal(false); + strictEqual(opts.rejectUnauthorized, false); }); it('should not set rejectUnauthorized if skipTLSVerify is not set', async () => { @@ -956,7 +1107,7 @@ describe('KubeConfig', () => { const opts = {} as RequestOptions; await config.applyToHTTPSOptions(opts); - expect(opts.rejectUnauthorized).to.equal(undefined); + strictEqual(opts.rejectUnauthorized, undefined); }); it('should throw with expired token and no cmd', () => { @@ -974,9 +1125,9 @@ describe('KubeConfig', () => { ); const opts = {} as RequestOptions; - return expect(config.applyToHTTPSOptions(opts)).to.eventually.be.rejectedWith( - 'Token is expired!', - ); + return rejects(config.applyToHTTPSOptions(opts), { + message: 'Token is expired!', + }); }); it('should throw with bad command', () => { @@ -995,9 +1146,7 @@ describe('KubeConfig', () => { } as User, ); const opts = {} as RequestOptions; - return expect(config.applyToHTTPSOptions(opts)).to.eventually.be.rejectedWith( - /Failed to refresh token/, - ); + return rejects(config.applyToHTTPSOptions(opts), /Failed to refresh token/); }); it('should exec with expired token', async () => { @@ -1025,10 +1174,7 @@ describe('KubeConfig', () => { ); const opts = {} as RequestOptions; await config.applyToHTTPSOptions(opts); - expect(opts.headers).to.not.be.undefined; - if (opts.headers) { - expect(opts.headers.Authorization).to.equal(`Bearer ${token}`); - } + strictEqual(opts.headers!['Authorization'], `Bearer ${token}`); }); it('should exec with expired token', async () => { @@ -1056,10 +1202,7 @@ describe('KubeConfig', () => { ); const opts = {} as RequestOptions; await config.applyToHTTPSOptions(opts); - expect(opts.headers).to.not.be.undefined; - if (opts.headers) { - expect(opts.headers.Authorization).to.equal(`Bearer ${token}`); - } + strictEqual(opts.headers!['Authorization'], `Bearer ${token}`); }); it('should exec without access-token', async () => { @@ -1086,10 +1229,7 @@ describe('KubeConfig', () => { ); const opts = {} as RequestOptions; await config.applyToHTTPSOptions(opts); - expect(opts.headers).to.not.be.undefined; - if (opts.headers) { - expect(opts.headers.Authorization).to.equal(`Bearer ${token}`); - } + strictEqual(opts.headers!['Authorization'], `Bearer ${token}`); }); it('should exec without access-token', async () => { // TODO: fix this test for Windows @@ -1115,10 +1255,7 @@ describe('KubeConfig', () => { ); const opts = {} as RequestOptions; await config.applyToHTTPSOptions(opts); - expect(opts.headers).to.not.be.undefined; - if (opts.headers) { - expect(opts.headers.Authorization).to.equal(`Bearer ${token}`); - } + strictEqual(opts.headers!['Authorization'], `Bearer ${token}`); }); it('should exec succesfully with spaces in cmd', async () => { // TODO: fix this test for Windows @@ -1144,10 +1281,7 @@ describe('KubeConfig', () => { ); const opts = {} as RequestOptions; await config.applyToHTTPSOptions(opts); - expect(opts.headers).to.not.be.undefined; - if (opts.headers) { - expect(opts.headers.Authorization).to.equal(`Bearer ${token}`); - } + strictEqual(opts.headers!['Authorization'], `Bearer ${token}`); }); it('should exec with exec auth and env vars', async () => { // TODO: fix this test for Windows @@ -1180,10 +1314,7 @@ describe('KubeConfig', () => { // TODO: inject the exec command here and validate env vars? const opts = {} as RequestOptions; await config.applyToHTTPSOptions(opts); - expect(opts.headers).to.not.be.undefined; - if (opts.headers) { - expect(opts.headers.Authorization).to.equal(`Bearer ${token}`); - } + strictEqual(opts.headers!['Authorization'], `Bearer ${token}`); }); it('should exec with exec auth', async () => { // TODO: fix this test for Windows @@ -1216,10 +1347,7 @@ describe('KubeConfig', () => { // TODO: inject the exec command here? const opts = {} as RequestOptions; await config.applyToHTTPSOptions(opts); - expect(opts.headers).to.not.be.undefined; - if (opts.headers) { - expect(opts.headers.Authorization).to.equal(`Bearer ${token}`); - } + strictEqual(opts.headers!['Authorization'], `Bearer ${token}`); }); it('should exec with exec auth (other location)', async () => { // TODO: fix this test for Windows @@ -1247,10 +1375,7 @@ describe('KubeConfig', () => { // TODO: inject the exec command here? const opts = {} as RequestOptions; await config.applyToHTTPSOptions(opts); - expect(opts.headers).to.not.be.undefined; - if (opts.headers) { - expect(opts.headers.Authorization).to.equal(`Bearer ${token}`); - } + strictEqual(opts.headers!['Authorization'], `Bearer ${token}`); }); it('should cache exec with name', async () => { // TODO: fix this test for Windows @@ -1279,10 +1404,10 @@ describe('KubeConfig', () => { // TODO: inject the exec command here? const opts = {} as RequestOptions; await config.applyToHTTPSOptions(opts); - const execAuthenticator = (KubeConfig as any).authenticators.find( + const execAuthenticator = (config as any).authenticators.find( (authenticator) => authenticator instanceof ExecAuth, ); - expect(execAuthenticator.tokenCache.exec).to.deep.equal(JSON.parse(responseStr)); + deepStrictEqual(execAuthenticator.tokenCache.exec, JSON.parse(responseStr)); }); it('should throw with no command.', () => { @@ -1299,9 +1424,9 @@ describe('KubeConfig', () => { } as User, ); const opts = {} as RequestOptions; - return expect(config.applyToHTTPSOptions(opts)).to.eventually.be.rejectedWith( - 'No command was specified for exec authProvider!', - ); + return rejects(config.applyToHTTPSOptions(opts), { + message: 'No command was specified for exec authProvider!', + }); }); }); @@ -1313,10 +1438,10 @@ describe('KubeConfig', () => { kc.loadFromDefault(); // 2 in the first config, 1 in the second config - expect(kc.clusters.length).to.equal(3); - expect(kc.users.length).to.equal(6); - expect(kc.contexts.length).to.equal(4); - expect(kc.getCurrentContext()).to.equal('contextA'); + strictEqual(kc.clusters.length, 3); + strictEqual(kc.users.length, 6); + strictEqual(kc.contexts.length, 4); + strictEqual(kc.getCurrentContext(), 'contextA'); }); it('should preserve starting file context', () => { process.env.KUBECONFIG = kcFileName + path.delimiter + kc2FileName; @@ -1324,27 +1449,27 @@ describe('KubeConfig', () => { const kc = new KubeConfig(); kc.loadFromDefault({}, true); - expect(kc.getCurrentContext()).to.equal('context2'); + strictEqual(kc.getCurrentContext(), 'context2'); }); it('should throw with duplicate clusters', () => { process.env.KUBECONFIG = kcFileName + path.delimiter + kcDupeCluster; const kc = new KubeConfig(); - expect(() => kc.loadFromDefault()).to.throw('Duplicate cluster: cluster1'); + throws(() => kc.loadFromDefault(), { message: 'Duplicate cluster: cluster1' }); }); it('should throw with duplicate contexts', () => { process.env.KUBECONFIG = kcFileName + path.delimiter + kcDupeContext; const kc = new KubeConfig(); - expect(() => kc.loadFromDefault()).to.throw('Duplicate context: context1'); + throws(() => kc.loadFromDefault(), { message: 'Duplicate context: context1' }); }); it('should throw with duplicate users', () => { process.env.KUBECONFIG = kcFileName + path.delimiter + kcDupeUser; const kc = new KubeConfig(); - expect(() => kc.loadFromDefault()).to.throw('Duplicate user: user1'); + throws(() => kc.loadFromDefault(), { message: 'Duplicate user: user1' }); }); it('should ignore extra path delimiters', () => { @@ -1353,10 +1478,10 @@ describe('KubeConfig', () => { const kc = new KubeConfig(); kc.loadFromDefault(); - expect(kc.clusters.length).to.equal(2); - expect(kc.users.length).to.equal(3); - expect(kc.contexts.length).to.equal(3); - expect(kc.getCurrentContext()).to.equal('context2'); + strictEqual(kc.clusters.length, 2); + strictEqual(kc.users.length, 3); + strictEqual(kc.contexts.length, 3); + strictEqual(kc.getCurrentContext(), 'context2'); }); }); @@ -1384,17 +1509,17 @@ describe('KubeConfig', () => { keyFile: 'user/user.key', }); kc.makePathsAbsolute('/tmp'); - expect(kc.clusters[0].caFile).to.equal(platformPath('/tmp/foo/bar.crt')); - expect(kc.users[0].certFile).to.equal(platformPath('/tmp/user/user.crt')); - expect(kc.users[0].keyFile).to.equal(platformPath('/tmp/user/user.key')); + strictEqual(kc.clusters[0].caFile, platformPath('/tmp/foo/bar.crt')); + strictEqual(kc.users[0].certFile, platformPath('/tmp/user/user.crt')); + strictEqual(kc.users[0].keyFile, platformPath('/tmp/user/user.key')); }); it('should correctly make absolute paths', () => { const relative = 'foo/bar'; const absolute = '/tmp/foo/bar'; const root = '/usr/'; - expect(makeAbsolutePath(root, relative)).to.equal(platformPath('/usr/foo/bar')); - expect(makeAbsolutePath(root, absolute)).to.equal(absolute); + strictEqual(makeAbsolutePath(root, relative), platformPath('/usr/foo/bar')); + strictEqual(makeAbsolutePath(root, absolute), absolute); }); }); @@ -1452,25 +1577,17 @@ describe('KubeConfig', () => { delete process.env.KUBERNETES_SERVICE_PORT; const cluster = kc.getCurrentCluster(); - expect(cluster).to.not.be.null; - if (!cluster) { - return; - } - expect(cluster.caFile).to.equal('/var/run/secrets/kubernetes.io/serviceaccount/ca.crt'); - expect(cluster.server).to.equal('https://kubernetes/'); + strictEqual(cluster!.caFile, '/var/run/secrets/kubernetes.io/serviceaccount/ca.crt'); + strictEqual(cluster!.server, 'https://kubernetes/'); const user = kc.getCurrentUser(); - expect(user).to.not.be.null; - if (user) { - expect(user.authProvider.config.tokenFile).to.equal( - '/var/run/secrets/kubernetes.io/serviceaccount/token', - ); - } + strictEqual( + user!.authProvider.config.tokenFile, + '/var/run/secrets/kubernetes.io/serviceaccount/token', + ); + const contextName = kc.getCurrentContext(); const currentContext = kc.getContextObject(contextName); - expect(currentContext).to.not.be.null; - if (currentContext) { - expect(currentContext.namespace).to.equal('myNamespace'); - } + strictEqual(currentContext!.namespace, 'myNamespace'); }); it('should load from cluster with http port', () => { @@ -1496,11 +1613,7 @@ describe('KubeConfig', () => { delete process.env.KUBERNETES_SERVICE_PORT; const cluster = kc.getCurrentCluster(); - expect(cluster).to.not.be.null; - if (!cluster) { - return; - } - expect(cluster.server).to.equal('http://kubernetes/'); + strictEqual(cluster!.server, 'http://kubernetes/'); }); it('should load from cluster with ipv6', () => { @@ -1526,11 +1639,7 @@ describe('KubeConfig', () => { delete process.env.KUBERNETES_SERVICE_PORT; const cluster = kc.getCurrentCluster(); - expect(cluster).to.not.be.null; - if (!cluster) { - return; - } - expect(cluster.server).to.equal('http://[::1234:5678]/'); + strictEqual(cluster!.server, 'http://[::1234:5678]/'); }); it('should default to localhost', () => { @@ -1545,18 +1654,11 @@ describe('KubeConfig', () => { process.env.HOME = currentHome; const cluster = kc.getCurrentCluster(); - expect(cluster).to.not.be.null; - if (!cluster) { - return; - } - expect(cluster.name).to.equal('cluster'); - expect(cluster.server).to.equal('http://localhost:8080/'); + strictEqual(cluster!.name, 'cluster'); + strictEqual(cluster!.server, 'http://localhost:8080/'); const user = kc.getCurrentUser(); - expect(user).to.not.be.null; - if (user) { - expect(user.name).to.equal('user'); - } + strictEqual(user!.name, 'user'); }); }); @@ -1570,30 +1672,30 @@ describe('KubeConfig', () => { kc.loadFromFile(kcFileName); const client = kc.makeApiClient(CoreV1Api); - expect(client instanceof CoreV1Api).to.equal(true); + strictEqual(client instanceof CoreV1Api, true); }); }); describe('EmptyConfig', () => { const emptyConfig = new KubeConfig(); it('should throw if you try to make a client', () => { - expect(() => emptyConfig.makeApiClient(CoreV1Api)).to.throw('No active cluster!'); + throws(() => emptyConfig.makeApiClient(CoreV1Api), { message: 'No active cluster!' }); }); it('should get a null current cluster', () => { - expect(emptyConfig.getCurrentCluster()).to.equal(null); + strictEqual(emptyConfig.getCurrentCluster(), null); }); it('should get empty user', () => { - expect(emptyConfig.getCurrentUser()).to.equal(null); + strictEqual(emptyConfig.getCurrentUser(), null); }); it('should get empty cluster', () => { - expect(emptyConfig.getCurrentCluster()).to.equal(null); + strictEqual(emptyConfig.getCurrentCluster(), null); }); it('should get empty context', () => { - expect(emptyConfig.getCurrentContext()).to.be.undefined; + strictEqual(emptyConfig.getCurrentContext(), undefined); }); it('should apply to request', async () => { @@ -1625,12 +1727,25 @@ describe('KubeConfig', () => { }); kc.setCurrentContext('test'); - expect(kc.getCurrentCluster()!.name).to.equal('testCluster'); - expect(kc.getCurrentUser()!.username).to.equal('username'); + strictEqual(kc.getCurrentCluster()!.name, 'testCluster'); + strictEqual(kc.getCurrentUser()!.username, 'username'); }); }); describe('BufferOrFile', () => { + let originalEnv; + + before(() => { + // The code being tested here references process.env and can fail + // if run on a machine with certain environment variable settings. + originalEnv = process.env; + process.env = {}; + }); + + after(() => { + process.env = originalEnv; + }); + it('should load from root if present', () => { const data = 'some data for file'; const arg: any = { @@ -1640,10 +1755,7 @@ describe('KubeConfig', () => { }; mockfs(arg); const inputData = bufferFromFileOrString('configDir/config'); - expect(inputData).to.not.equal(null); - if (inputData) { - expect(inputData.toString()).to.equal(data); - } + strictEqual(inputData!.toString(), data); mockfs.restore(); }); it('should load from a file if present', () => { @@ -1653,11 +1765,159 @@ describe('KubeConfig', () => { }; mockfs(arg); const inputData = bufferFromFileOrString('config'); - expect(inputData).to.not.equal(null); - if (inputData) { - expect(inputData.toString()).to.equal(data); - } + strictEqual(inputData!.toString(), data); mockfs.restore(); }); + it('should try to load from WSL on Windows with wsl.exe not working', () => { + const kc = new KubeConfig(); + const commands: { command: string; args: string[] }[] = []; + mock.method(child_process, 'spawnSync', (cmd: string, args: string[]) => { + commands.push({ command: cmd, args }); + return { status: 1, stderr: 'some error' }; + }); + kc.loadFromDefault(undefined, false, 'win32'); + strictEqual(commands.length, 2); + for (let i = 0; i < commands.length; i++) { + strictEqual(commands[i].command, 'wsl.exe'); + } + }); + it('should try to load from WSL on Windows with $KUBECONFIG', () => { + const kc = new KubeConfig(); + const test_path = 'C:\\Users\\user\\.kube\\config'; + const configData = readFileSync(kcFileName); + const commands: { command: string; args: string[] }[] = []; + const results: { status: number; stderr: string; stdout: string }[] = [ + { status: 0, stderr: '', stdout: test_path }, + { status: 0, stderr: '', stdout: configData.toString() }, + ]; + let ix = 0; + mock.method(child_process, 'spawnSync', (cmd: string, args: string[]) => { + commands.push({ command: cmd, args }); + return results[ix++]; + }); + kc.loadFromDefault(undefined, false, 'win32'); + strictEqual(commands.length, 2); + for (let i = 0; i < commands.length; i++) { + strictEqual(commands[i].command, 'wsl.exe'); + } + validateFileLoad(kc); + }); + it('should try to load from WSL on Windows without $KUBECONFIG', () => { + const kc = new KubeConfig(); + const configData = readFileSync(kcFileName); + const commands: { command: string; args: string[] }[] = []; + const results: { status: number; stderr: string; stdout: string }[] = [ + { status: 1, stderr: 'Some Error', stdout: '' }, + { status: 0, stderr: '', stdout: configData.toString() }, + { status: 0, stderr: '', stdout: 'C:\\wsldata\\.kube' }, + ]; + let ix = 0; + mock.method(child_process, 'spawnSync', (cmd: string, args: string[]) => { + commands.push({ command: cmd, args }); + return results[ix++]; + }); + kc.loadFromDefault(undefined, false, 'win32'); + strictEqual(commands.length, 3); + for (let i = 0; i < commands.length; i++) { + strictEqual(commands[i].command, 'wsl.exe'); + } + validateFileLoad(kc); + }); + + it('should inject a custom Authenticator', async () => { + class CustomAuthenticator implements Authenticator { + public isAuthProvider(user: User): boolean { + return user.authProvider === 'custom'; + } + + public async applyAuthentication(user: User, opts: RequestOptions): Promise { + if (user.authProvider === 'custom') { + // Simulate token retrieval + const token = 'test-token'; + opts.headers = opts.headers || {}; + opts.headers['Authorization'] = `Bearer ${token}`; + } else { + throw new Error('No custom configuration found'); + } + } + } + + const customAuthenticator = new CustomAuthenticator(); + const kc = new KubeConfig(); + kc.addAuthenticator(customAuthenticator); + + const cluster: Cluster = { + name: 'test-cluster', + server: 'https://localhost:6443/', + skipTLSVerify: false, + }; + const user: User = { + name: 'test-user', + authProvider: 'custom', + }; + + kc.loadFromClusterAndUser(cluster, user); + + const opts: RequestOptions = {}; + await kc.applyToHTTPSOptions(opts); + + strictEqual(opts.headers!['Authorization'], 'Bearer test-token'); + }); + }); + + describe('Impersonation', () => { + it('injects Impersonate-User header', async () => { + const kc = new KubeConfig(); + const cluster: Cluster = { + name: 'test-cluster', + server: 'https://localhost:6443/', + skipTLSVerify: false, + }; + const user: User = { + name: 'test-user', + authProvider: 'custom', + impersonateUser: 'impersonate-user', + }; + + kc.loadFromClusterAndUser(cluster, user); + const opts: RequestOptions = {}; + await kc.applyToHTTPSOptions(opts); + strictEqual(opts.headers!['Impersonate-User'], 'impersonate-user'); + }); }); }); + +// create a self-signed HTTPS test server +async function createTestHttpsServer( + requestHandler?: (req: http.IncomingMessage, res: http.ServerResponse) => void, +): Promise<{ + server: https.Server; + host: string; + port: number; + ca: string; +}> { + const host = 'localhost'; + + const cert = readFileSync(testCertFileName, 'utf8'); + const key = readFileSync(testKeyFileName, 'utf8'); + + const defaultHandler = (req: http.IncomingMessage, res: http.ServerResponse) => { + res.writeHead(200); + res.end('ok'); + }; + + const server = https.createServer({ key, cert }, requestHandler ?? defaultHandler); + + const port = await new Promise((resolve) => { + server.listen(0, () => { + resolve((server.address() as AddressInfo).port); + }); + }); + + return { + server, + host, + port, + ca: cert, // ca is the same as cert here + }; +} diff --git a/src/config_types.ts b/src/config_types.ts index f628e1ad68..6b08084ab4 100644 --- a/src/config_types.ts +++ b/src/config_types.ts @@ -1,9 +1,11 @@ import fs from 'node:fs'; -export enum ActionOnInvalid { - THROW = 'throw', - FILTER = 'filter', -} +export const ActionOnInvalid = { + THROW: 'throw', + FILTER: 'filter', +} as const; + +export type ActionOnInvalid = (typeof ActionOnInvalid)[keyof typeof ActionOnInvalid]; export interface ConfigOptions { onInvalidEntry: ActionOnInvalid; @@ -95,6 +97,7 @@ export interface User { readonly token?: string; readonly username?: string; readonly password?: string; + readonly impersonateUser?: string; } export function newUsers(a: any, opts?: Partial): User[] { @@ -111,6 +114,7 @@ export function exportUser(user: User): any { return { name: user.name, user: { + as: user.impersonateUser, 'auth-provider': user.authProvider, 'client-certificate-data': user.certData, 'client-certificate': user.certFile, @@ -141,6 +145,7 @@ function userIterator(onInvalidEntry: ActionOnInvalid): (elt: any, i: number, li token: findToken(elt.user), password: elt.user ? elt.user.password : null, username: elt.user ? elt.user.username : null, + impersonateUser: elt.user ? elt.user.as : null, }; } catch (err) { switch (onInvalidEntry) { diff --git a/src/cp.ts b/src/cp.ts index d84d34cf86..f8920e908d 100644 --- a/src/cp.ts +++ b/src/cp.ts @@ -1,7 +1,5 @@ -import fs from 'node:fs'; import { WritableStreamBuffer } from 'stream-buffers'; -import * as tar from 'tar'; -import tmp from 'tmp-promise'; +import tar from 'tar-fs'; import { KubeConfig } from './config.js'; import { Exec } from './exec.js'; @@ -18,6 +16,7 @@ export class Cp { * @param {string} containerName - The name of the container in the pod to exec the command inside. * @param {string} srcPath - The source path in the pod * @param {string} tgtPath - The target path in local + * @param {string} [cwd] - The directory that is used as the parent in the pod when downloading */ public async cpFromPod( namespace: string, @@ -25,11 +24,14 @@ export class Cp { containerName: string, srcPath: string, tgtPath: string, + cwd?: string, ): Promise { - const tmpFile = tmp.fileSync(); - const tmpFileName = tmpFile.name; - const command = ['tar', 'zcf', '-', srcPath]; - const writerStream = fs.createWriteStream(tmpFileName); + const command = ['tar', 'cf', '-']; + if (cwd) { + command.push('-C', cwd); + } + command.push(srcPath); + const writerStream = tar.extract(tgtPath); const errStream = new WritableStreamBuffer(); this.execInstance.exec( namespace, @@ -44,10 +46,6 @@ export class Cp { if (errStream.size()) { throw new Error(`Error from cpFromPod - details: \n ${errStream.getContentsAsString()}`); } - await tar.x({ - file: tmpFileName, - cwd: tgtPath, - }); }, ); } @@ -66,16 +64,8 @@ export class Cp { srcPath: string, tgtPath: string, ): Promise { - const tmpFile = tmp.fileSync(); - const tmpFileName = tmpFile.name; const command = ['tar', 'xf', '-', '-C', tgtPath]; - await tar.c( - { - file: tmpFile.name, - }, - [srcPath], - ); - const readStream = fs.createReadStream(tmpFileName); + const readStream = tar.pack(srcPath); const errStream = new WritableStreamBuffer(); this.execInstance.exec( namespace, diff --git a/src/cp_test.ts b/src/cp_test.ts index 104553c9bf..fb38247df3 100644 --- a/src/cp_test.ts +++ b/src/cp_test.ts @@ -1,3 +1,4 @@ +import { describe, it } from 'node:test'; import { anything, anyFunction, instance, mock, verify, when } from 'ts-mockito'; import querystring from 'node:querystring'; import WebSocket from 'isomorphic-ws'; @@ -21,7 +22,7 @@ describe('Cp', () => { const container = 'container'; const srcPath = '/'; const tgtPath = '/'; - const cmdArray = ['tar', 'zcf', '-', srcPath]; + const cmdArray = ['tar', 'cf', '-', srcPath]; const path = `/api/v1/namespaces/${namespace}/pods/${pod}/exec`; const query = { @@ -35,7 +36,35 @@ describe('Cp', () => { const queryStr = querystring.stringify(query); await cp.cpFromPod(namespace, pod, container, srcPath, tgtPath); - // tslint:disable-next-line:max-line-length + verify(fakeWebSocket.connect(`${path}?${queryStr}`, null, anyFunction())).called(); + }); + + it('should run create tar command to a url with cwd', async () => { + const kc = new KubeConfig(); + const fakeWebSocket: WebSocketInterface = mock(WebSocketHandler); + const exec = new Exec(kc, instance(fakeWebSocket)); + const cp = new Cp(kc, exec); + + const namespace = 'somenamespace'; + const pod = 'somepod'; + const container = 'container'; + const srcPath = '/'; + const tgtPath = '/'; + const cwd = '/abc'; + const cmdArray = ['tar', 'cf', '-', '-C', cwd, srcPath]; + const path = `/api/v1/namespaces/${namespace}/pods/${pod}/exec`; + + const query = { + stdout: true, + stderr: true, + stdin: false, + tty: false, + command: cmdArray, + container, + }; + const queryStr = querystring.stringify(query); + + await cp.cpFromPod(namespace, pod, container, srcPath, tgtPath, cwd); verify(fakeWebSocket.connect(`${path}?${queryStr}`, null, anyFunction())).called(); }); }); diff --git a/src/exec_auth.ts b/src/exec_auth.ts index 3ac70dfa4e..4698f83980 100644 --- a/src/exec_auth.ts +++ b/src/exec_auth.ts @@ -10,7 +10,7 @@ export interface CredentialStatus { readonly token: string; readonly clientCertificateData: string; readonly clientKeyData: string; - readonly expirationTimestamp: string; + readonly expirationTimestamp?: string; } export interface Credential { @@ -56,7 +56,7 @@ export class ExecAuth implements Authenticator { if (!opts.headers) { opts.headers = {} as OutgoingHttpHeaders; } - opts.headers!.Authorization = `Bearer ${token}`; + opts.headers!['Authorization'] = `Bearer ${token}`; } } @@ -74,6 +74,9 @@ export class ExecAuth implements Authenticator { // TODO: Add a unit test for token caching. const cachedToken = this.tokenCache[user.name]; if (cachedToken) { + if (!cachedToken.status.expirationTimestamp) { + return cachedToken; + } const date = Date.parse(cachedToken.status.expirationTimestamp); if (date > Date.now()) { return cachedToken; @@ -95,7 +98,7 @@ export class ExecAuth implements Authenticator { } let opts = {}; if (exec.env) { - const env = process.env; + const env = { ...process.env }; exec.env.forEach((elt) => (env[elt.name] = elt.value)); opts = { ...opts, env }; } diff --git a/src/exec_auth_test.ts b/src/exec_auth_test.ts index 9039f4a1c7..320d93f860 100644 --- a/src/exec_auth_test.ts +++ b/src/exec_auth_test.ts @@ -1,7 +1,5 @@ -import { expect, use } from 'chai'; -import chaiAsPromised from 'chai-as-promised'; -use(chaiAsPromised); - +import { describe, it } from 'node:test'; +import { rejects, strictEqual } from 'node:assert'; import https from 'node:https'; import { OutgoingHttpHeaders } from 'node:http'; @@ -15,22 +13,22 @@ describe('ExecAuth', () => { const auth = new ExecAuth(); const unk: unknown = null; - expect(auth.isAuthProvider(unk as User)).to.be.false; + strictEqual(auth.isAuthProvider(unk as User), false); const empty = {} as User; - expect(auth.isAuthProvider(empty)).to.be.false; + strictEqual(auth.isAuthProvider(empty), false); const exec = { exec: {}, } as User; - expect(auth.isAuthProvider(exec)).to.be.true; + strictEqual(auth.isAuthProvider(exec), true); const execName = { authProvider: { name: 'exec', }, } as User; - expect(auth.isAuthProvider(execName)).to.be.true; + strictEqual(auth.isAuthProvider(execName), true); const execConfig = { authProvider: { @@ -39,7 +37,7 @@ describe('ExecAuth', () => { }, }, } as User; - expect(auth.isAuthProvider(execConfig)).to.be.true; + strictEqual(auth.isAuthProvider(execConfig), true); const azureConfig = { authProvider: { @@ -49,7 +47,7 @@ describe('ExecAuth', () => { }, }, } as User; - expect(auth.isAuthProvider(azureConfig)).to.be.false; + strictEqual(auth.isAuthProvider(azureConfig), false); }); it('should correctly exec', async () => { @@ -96,7 +94,7 @@ describe('ExecAuth', () => { }, opts, ); - expect(opts.headers.Authorization).to.equal('Bearer foo'); + strictEqual(opts.headers.Authorization, 'Bearer foo'); }); it('should correctly exec for certs', async () => { @@ -150,9 +148,9 @@ describe('ExecAuth', () => { opts.headers = {} as OutgoingHttpHeaders; await auth.applyAuthentication(user, opts); - expect(opts.headers.Authorization).to.be.undefined; - expect(opts.cert).to.equal('foo'); - expect(opts.key).to.equal('bar'); + strictEqual(opts.headers.Authorization, undefined); + strictEqual(opts.cert, 'foo'); + strictEqual(opts.key, 'bar'); }); it('should correctly exec and cache', async () => { @@ -161,9 +159,9 @@ describe('ExecAuth', () => { return; } const auth = new ExecAuth(); - var execCount = 0; - var expire = '29 Mar 1995 00:00:00 GMT'; - var tokenValue = 'foo'; + let execCount = 0; + let expire = '29 Mar 1995 00:00:00 GMT'; + let tokenValue = 'foo'; (auth as any).execFn = ( command: string, args?: readonly string[], @@ -210,21 +208,92 @@ describe('ExecAuth', () => { opts.headers = {} as OutgoingHttpHeaders; await auth.applyAuthentication(user, opts); - expect(opts.headers.Authorization).to.equal(`Bearer ${tokenValue}`); - expect(execCount).to.equal(1); + strictEqual(opts.headers.Authorization, `Bearer ${tokenValue}`); + strictEqual(execCount, 1); // old token should be expired, set expiration for the new token for the future. expire = '29 Mar 2095 00:00:00 GMT'; tokenValue = 'bar'; await auth.applyAuthentication(user, opts); - expect(opts.headers.Authorization).to.equal(`Bearer ${tokenValue}`); - expect(execCount).to.equal(2); + strictEqual(opts.headers.Authorization, `Bearer ${tokenValue}`); + strictEqual(execCount, 2); // Should use cached token, execCount should stay at two, token shouldn't change tokenValue = 'baz'; await auth.applyAuthentication(user, opts); - expect(opts.headers.Authorization).to.equal('Bearer bar'); - expect(execCount).to.equal(2); + strictEqual(opts.headers.Authorization, 'Bearer bar'); + strictEqual(execCount, 2); + }); + + it('should cache tokens without expirationTimestamp (non-expiring tokens)', async () => { + // TODO: fix this test for Windows + if (process.platform === 'win32') { + return; + } + const auth = new ExecAuth(); + let execCount = 0; + const tokenValue = 'non-expiring-token'; + + (auth as any).execFn = ( + command: string, + args?: readonly string[], + options?: child_process.SpawnOptionsWithoutStdio, + ): child_process.ChildProcessWithoutNullStreams => { + execCount++; + return { + stdout: { + setEncoding: () => {}, + on: (_data: string, f: (data: Buffer | string) => void) => { + // Note: No expirationTimestamp field - token should never expire + f( + Buffer.from( + JSON.stringify({ + status: { token: tokenValue }, + }), + ), + ); + }, + }, + stderr: { + setEncoding: () => {}, + on: () => {}, + }, + on: (op: string, f: any) => { + if (op === 'close') { + f(0); + } + }, + } as unknown as child_process.ChildProcessWithoutNullStreams; + }; + + const user = { + name: 'user', + authProvider: { + config: { + exec: { + command: 'echo', + }, + }, + }, + }; + + const opts = {} as https.RequestOptions; + opts.headers = {} as OutgoingHttpHeaders; + + // First call - should execute the command + await auth.applyAuthentication(user, opts); + strictEqual(opts.headers.Authorization, `Bearer ${tokenValue}`); + strictEqual(execCount, 1); + + // Second call - should use cached token (no expiration means never expires) + await auth.applyAuthentication(user, opts); + strictEqual(opts.headers.Authorization, `Bearer ${tokenValue}`); + strictEqual(execCount, 1, 'exec should not be called again for non-expiring token'); + + // Third call - still should use cached token + await auth.applyAuthentication(user, opts); + strictEqual(opts.headers.Authorization, `Bearer ${tokenValue}`); + strictEqual(execCount, 1, 'exec should still not be called again'); }); it('should return null on no exec info', async () => { @@ -233,10 +302,53 @@ describe('ExecAuth', () => { opts.headers = {} as OutgoingHttpHeaders; await auth.applyAuthentication({} as User, opts); - expect(opts.headers.Authorization).to.be.undefined; + strictEqual(opts.headers.Authorization, undefined); }); - it('should throw on spawnSync errors', () => { + it('should handle returned errors correctly', async () => { + const auth = new ExecAuth(); + (auth as any).execFn = ( + command: string, + args?: readonly string[], + options?: child_process.SpawnOptionsWithoutStdio, + ): child_process.ChildProcessWithoutNullStreams => { + return { + stdout: { + setEncoding: () => {}, + on: () => {}, + }, + stderr: { + setEncoding: () => {}, + on: () => {}, + }, + on: (op: string, f: any) => { + if (op === 'error') { + f(new Error('Some error!')); + } + if (op === 'close') { + f(1); + } + }, + } as unknown as child_process.ChildProcessWithoutNullStreams; + }; + const user = { + name: 'user', + authProvider: { + config: { + exec: { + command: '/path/to/bin', + }, + }, + }, + }; + const opts = {} as https.RequestOptions; + opts.headers = {} as OutgoingHttpHeaders; + + const promise = auth.applyAuthentication(user, opts); + await rejects(promise, { name: 'Error' }); + }); + + it('should throw on spawnSync errors', async () => { // TODO: fix this test for Windows if (process.platform === 'win32') { return; @@ -288,7 +400,7 @@ describe('ExecAuth', () => { opts.headers = {} as OutgoingHttpHeaders; const promise = auth.applyAuthentication(user, opts); - return expect(promise).to.eventually.be.rejected.and.not.instanceOf(TypeError); + await rejects(promise, { name: 'Error' }); }); it('should throw on exec errors', () => { @@ -338,7 +450,7 @@ describe('ExecAuth', () => { opts.headers = {} as OutgoingHttpHeaders; const promise = auth.applyAuthentication(user, opts); - return expect(promise).to.eventually.be.rejected; + return rejects(promise); }); it('should exec with env vars', async () => { @@ -396,9 +508,9 @@ describe('ExecAuth', () => { }, opts, ); - expect(optsOut.env!.foo).to.equal('bar'); - expect(optsOut.env!.PATH).to.equal(process.env.PATH); - expect(optsOut.env!.BLABBLE).to.equal(process.env.BLABBLE); + strictEqual(optsOut.env!.foo, 'bar'); + strictEqual(optsOut.env!.PATH, process.env.PATH); + strictEqual(optsOut.env!.BLABBLE, process.env.BLABBLE); }); it('should handle empty headers array correctly', async () => { @@ -445,6 +557,115 @@ describe('ExecAuth', () => { }, opts, ); - expect(opts.headers?.Authorization).to.equal('Bearer foo'); + strictEqual(opts.headers!['Authorization'], 'Bearer foo'); + }); + it('should handle null credentials correctly', async () => { + const auth = new ExecAuth(); + // Fake out Typescript + const res = (auth as any).getToken(null); + strictEqual(res, null); + }); + + it('should handle parse errors correctly', async () => { + const auth = new ExecAuth(); + (auth as any).execFn = ( + command: string, + args?: readonly string[], + options?: child_process.SpawnOptionsWithoutStdio, + ): child_process.ChildProcessWithoutNullStreams => { + return { + stdout: { + setEncoding: () => {}, + on: () => {}, + }, + stderr: { + setEncoding: () => {}, + on: () => {}, + }, + on: (op: string, f: any) => { + if (op === 'data') { + // Invalid JSON + f('foo'); + } + if (op === 'close') { + f(0); + } + }, + } as unknown as child_process.ChildProcessWithoutNullStreams; + }; + const user = { + name: 'user', + authProvider: { + config: { + exec: { + command: '/path/to/bin', + }, + }, + }, + }; + const opts = {} as https.RequestOptions; + opts.headers = {} as OutgoingHttpHeaders; + + const promise = auth.applyAuthentication(user, opts); + await rejects(promise, { name: 'SyntaxError' }); + }); + + it('should not overwrite environment variables in process.env', async () => { + // TODO: fix this test for Windows + if (process.platform === 'win32') { + return; + } + const auth = new ExecAuth(); + let optsOut: child_process.SpawnOptions | undefined = {}; + (auth as any).execFn = ( + command: string, + args?: readonly string[], + options?: child_process.SpawnOptionsWithoutStdio, + ): child_process.ChildProcessWithoutNullStreams => { + optsOut = options; + return { + stdout: { + setEncoding: () => {}, + on: (_data: string, f: (data: Buffer | string) => void) => { + f(Buffer.from(JSON.stringify({ status: { token: 'foo' } }))); + }, + }, + stderr: { + setEncoding: () => {}, + on: () => {}, + }, + on: (op: string, f: any) => { + if (op === 'close') { + f(0); + } + }, + } as unknown as child_process.ChildProcessWithoutNullStreams; + }; + + process.env.DO_NO_OVERWRITE_ME = 'important'; + const opts = {} as https.RequestOptions; + opts.headers = {} as OutgoingHttpHeaders; + + await auth.applyAuthentication( + { + name: 'user', + authProvider: { + config: { + exec: { + command: 'echo', + env: [ + { + name: 'DO_NO_OVERWRITE_ME', + value: 'in exec', + }, + ], + }, + }, + }, + }, + opts, + ); + strictEqual(optsOut.env!.DO_NO_OVERWRITE_ME, 'in exec'); + strictEqual(process.env.DO_NO_OVERWRITE_ME, 'important'); }); }); diff --git a/src/exec_test.ts b/src/exec_test.ts index c4d20769c6..405558b0c1 100644 --- a/src/exec_test.ts +++ b/src/exec_test.ts @@ -1,4 +1,5 @@ -import { expect } from 'chai'; +import { describe, it } from 'node:test'; +import { deepStrictEqual, strictEqual } from 'node:assert'; import WebSocket from 'isomorphic-ws'; import { ReadableStreamBuffer, WritableStreamBuffer } from 'stream-buffers'; import { anyFunction, anything, capture, instance, mock, verify, when } from 'ts-mockito'; @@ -48,7 +49,6 @@ describe('Exec', () => { verify(fakeWebSocket.connect(`${path}?${args}`, null, anyFunction())).called(); await exec.exec(namespace, pod, container, cmdArray, null, errStream, isStream, true); - // tslint:disable-next-line:max-line-length args = `stdout=false&stderr=true&stdin=true&tty=true&command=${cmdArray[0]}&command=${cmdArray[1]}&command=${cmdArray[2]}&container=${container}`; verify(fakeWebSocket.connect(`${path}?${args}`, null, anyFunction())).called(); }); @@ -96,8 +96,7 @@ describe('Exec', () => { const [, , outputFn] = capture(fakeWebSocketInterface.connect).last(); - /* tslint:disable:no-unused-expression */ - expect(outputFn).to.not.be.null; + strictEqual(typeof outputFn, 'function'); // this is redundant but needed for the compiler, sigh... if (!outputFn) { @@ -107,18 +106,18 @@ describe('Exec', () => { let buffer = Buffer.alloc(1024, 10); outputFn(WebSocketHandler.StdoutStream, buffer); - expect(osStream.size()).to.equal(1024); + strictEqual(osStream.size(), 1024); let buff = osStream.getContents() as Buffer; for (let i = 0; i < 1024; i++) { - expect(buff[i]).to.equal(10); + strictEqual(buff[i], 10); } buffer = Buffer.alloc(1024, 20); outputFn(WebSocketHandler.StderrStream, buffer); - expect(errStream.size()).to.equal(1024); + strictEqual(errStream.size(), 1024); buff = errStream.getContents() as Buffer; for (let i = 0; i < 1024; i++) { - expect(buff[i]).to.equal(20); + strictEqual(buff[i], 20); } const initialTerminalSize: TerminalSize = { height: 0, width: 0 }; @@ -150,7 +149,7 @@ describe('Exec', () => { message: 'this is a test', } as V1Status; outputFn(WebSocketHandler.StatusStream, Buffer.from(JSON.stringify(statusIn))); - expect(statusOut).to.deep.equal(statusIn); + deepStrictEqual(statusOut, statusIn); const closePromise = callAwaiter.awaitCall('close'); isStream.stop(); diff --git a/src/file_auth.ts b/src/file_auth.ts index b8b7644636..d6d4f56c9b 100644 --- a/src/file_auth.ts +++ b/src/file_auth.ts @@ -20,7 +20,7 @@ export class FileAuth implements Authenticator { this.refreshToken(user.authProvider.config.tokenFile); } if (this.token) { - opts.headers!.Authorization = `Bearer ${this.token}`; + opts.headers!['Authorization'] = `Bearer ${this.token}`; } } diff --git a/src/file_auth_test.ts b/src/file_auth_test.ts index 6dadc045ec..6843ed1d55 100644 --- a/src/file_auth_test.ts +++ b/src/file_auth_test.ts @@ -1,4 +1,5 @@ -import { expect } from 'chai'; +import { describe, it } from 'node:test'; +import { strictEqual } from 'node:assert'; import { OutgoingHttpHeaders } from 'node:http'; import https from 'node:https'; import mockfs from 'mock-fs'; @@ -28,7 +29,7 @@ describe('FileAuth', () => { opts.headers = {} as OutgoingHttpHeaders; await auth.applyAuthentication(user, opts); - expect(opts.headers.Authorization).to.equal(`Bearer ${token}`); + strictEqual(opts.headers.Authorization, `Bearer ${token}`); mockfs.restore(); }); it('should refresh when expired', async () => { @@ -53,7 +54,7 @@ describe('FileAuth', () => { opts.headers = {} as OutgoingHttpHeaders; await auth.applyAuthentication(user, opts); - expect(opts.headers.Authorization).to.equal(`Bearer ${token}`); + strictEqual(opts.headers.Authorization, `Bearer ${token}`); mockfs.restore(); }); it('should claim correctly', async () => { @@ -77,13 +78,13 @@ describe('FileAuth', () => { opts.headers = {} as OutgoingHttpHeaders; await auth.applyAuthentication(user, opts); - expect(opts.headers.Authorization).to.equal(`Bearer ${token}`); + strictEqual(opts.headers.Authorization, `Bearer ${token}`); // Set the file to non-existent, but shouldn't matter b/c token is cached. user.authProvider.config.tokenFile = '/non/existent/file/token.txt'; await auth.applyAuthentication(user, opts); - expect(opts.headers.Authorization).to.equal(`Bearer ${token}`); + strictEqual(opts.headers.Authorization, `Bearer ${token}`); mockfs.restore(); }); }); diff --git a/src/gcp_auth.ts b/src/gcp_auth.ts index 0f3d680e08..1bf1089618 100644 --- a/src/gcp_auth.ts +++ b/src/gcp_auth.ts @@ -28,7 +28,7 @@ export class GoogleCloudPlatformAuth implements Authenticator { public async applyAuthentication(user: User, opts: https.RequestOptions): Promise { const token = this.getToken(user); if (token) { - opts.headers!.Authorization = `Bearer ${token}`; + opts.headers!['Authorization'] = `Bearer ${token}`; } } diff --git a/src/gcp_auth_test.ts b/src/gcp_auth_test.ts index 3737530b28..5649e2309e 100644 --- a/src/gcp_auth_test.ts +++ b/src/gcp_auth_test.ts @@ -1,4 +1,5 @@ -import { expect } from 'chai'; +import { beforeEach, describe, it } from 'node:test'; +import { rejects, strictEqual } from 'node:assert'; import { dirname, join } from 'node:path'; import { fileURLToPath } from 'node:url'; @@ -12,7 +13,7 @@ const __dirname = dirname(fileURLToPath(import.meta.url)); describe('GoogleCloudPlatformAuth', () => { const testUrl1 = 'https://test-gcp.com/'; - var auth: GoogleCloudPlatformAuth; + let auth: GoogleCloudPlatformAuth; beforeEach(() => { auth = new GoogleCloudPlatformAuth(); }); @@ -24,7 +25,7 @@ describe('GoogleCloudPlatformAuth', () => { }, } as User; - expect(auth.isAuthProvider(user)).to.equal(true); + strictEqual(auth.isAuthProvider(user), true); }); it('should be false for other user', () => { @@ -34,13 +35,13 @@ describe('GoogleCloudPlatformAuth', () => { }, } as User; - expect(auth.isAuthProvider(user)).to.equal(false); + strictEqual(auth.isAuthProvider(user), false); }); it('should be false for null user.authProvider', () => { const user = {} as User; - expect(auth.isAuthProvider(user)).to.equal(false); + strictEqual(auth.isAuthProvider(user), false); }); it('should populate from auth provider', async () => { @@ -58,17 +59,14 @@ describe('GoogleCloudPlatformAuth', () => { }, } as User, ); - let requestContext = new RequestContext(testUrl1, HttpMethod.GET); + const requestContext = new RequestContext(testUrl1, HttpMethod.GET); await config.applySecurityAuthentication(requestContext); - expect(requestContext.getHeaders()).to.not.be.undefined; - if (requestContext.getHeaders()) { - expect(requestContext.getHeaders()['Authorization']).to.equal(`Bearer ${token}`); - } + strictEqual(requestContext.getHeaders()?.['Authorization'], `Bearer ${token}`); requestContext.setUrl('http://www.foo.com/'); //opts.headers.Host = 'foo.com'; await config.applySecurityAuthentication(requestContext); - expect(requestContext.getHeaders()['Authorization']).to.equal(`Bearer ${token}`); + strictEqual(requestContext.getHeaders()['Authorization'], `Bearer ${token}`); }); it('should populate from auth provider without expirty', async () => { @@ -85,13 +83,10 @@ describe('GoogleCloudPlatformAuth', () => { }, } as User, ); - let requestContext = new RequestContext(testUrl1, HttpMethod.GET); + const requestContext = new RequestContext(testUrl1, HttpMethod.GET); await config.applySecurityAuthentication(requestContext); - expect(requestContext.getHeaders()).to.not.be.undefined; - if (requestContext.getHeaders()) { - expect(requestContext.getHeaders()['Authorization']).to.equal(`Bearer ${token}`); - } + strictEqual(requestContext.getHeaders()?.['Authorization'], `Bearer ${token}`); }); it('should populate rejectUnauthorized=false when skipTLSVerify is set', async () => { @@ -108,13 +103,13 @@ describe('GoogleCloudPlatformAuth', () => { }, } as User, ); - let requestContext = new RequestContext(testUrl1, HttpMethod.GET); + const requestContext = new RequestContext(testUrl1, HttpMethod.GET); await config.applySecurityAuthentication(requestContext); - // @ts-ignore + // @ts-expect-error const agent: Agent = requestContext.getAgent(); - expect(agent.options.rejectUnauthorized).to.equal(false); + strictEqual(agent.options.rejectUnauthorized, false); }); it('should not set rejectUnauthorized if skipTLSVerify is not set', async () => { @@ -133,10 +128,10 @@ describe('GoogleCloudPlatformAuth', () => { }, } as User, ); - let requestContext = new RequestContext(testUrl1, HttpMethod.GET); + const requestContext = new RequestContext(testUrl1, HttpMethod.GET); await config.applySecurityAuthentication(requestContext); - expect(requestContext.getHeaders()['rejectUnauthorized']).to.equal(undefined); + strictEqual(requestContext.getHeaders()['rejectUnauthorized'], undefined); }); it('should throw with expired token and no cmd', () => { @@ -152,11 +147,11 @@ describe('GoogleCloudPlatformAuth', () => { }, } as User, ); - let requestContext = new RequestContext(testUrl1, HttpMethod.GET); + const requestContext = new RequestContext(testUrl1, HttpMethod.GET); - return expect(config.applySecurityAuthentication(requestContext)).to.eventually.be.rejectedWith( - 'Token is expired!', - ); + return rejects(config.applySecurityAuthentication(requestContext), { + message: 'Token is expired!', + }); }); it('should throw with bad command', () => { @@ -174,10 +169,8 @@ describe('GoogleCloudPlatformAuth', () => { }, } as User, ); - let requestContext = new RequestContext(testUrl1, HttpMethod.GET); - return expect(config.applySecurityAuthentication(requestContext)).to.eventually.be.rejectedWith( - /Failed to refresh token/, - ); + const requestContext = new RequestContext(testUrl1, HttpMethod.GET); + return rejects(config.applySecurityAuthentication(requestContext), /Failed to refresh token/); }); it('should exec with expired token', async () => { @@ -203,12 +196,9 @@ describe('GoogleCloudPlatformAuth', () => { }, } as User, ); - let requestContext = new RequestContext(testUrl1, HttpMethod.GET); + const requestContext = new RequestContext(testUrl1, HttpMethod.GET); await config.applySecurityAuthentication(requestContext); - expect(requestContext.getHeaders()).to.not.be.undefined; - if (requestContext.getHeaders()) { - expect(requestContext.getHeaders()['Authorization']).to.equal(`Bearer ${token}`); - } + strictEqual(requestContext.getHeaders()?.['Authorization'], `Bearer ${token}`); }); it('should exec without access-token', async () => { // TODO: fix this test for Windows @@ -232,12 +222,9 @@ describe('GoogleCloudPlatformAuth', () => { }, } as User, ); - let requestContext = new RequestContext(testUrl1, HttpMethod.GET); + const requestContext = new RequestContext(testUrl1, HttpMethod.GET); await config.applySecurityAuthentication(requestContext); - expect(requestContext.getHeaders()).to.not.be.undefined; - if (requestContext.getHeaders()) { - expect(requestContext.getHeaders()['Authorization']).to.equal(`Bearer ${token}`); - } + strictEqual(requestContext.getHeaders()?.['Authorization'], `Bearer ${token}`); }); it('should exec without access-token', async () => { // TODO: fix this test for Windows @@ -261,12 +248,9 @@ describe('GoogleCloudPlatformAuth', () => { }, } as User, ); - let requestContext = new RequestContext(testUrl1, HttpMethod.GET); + const requestContext = new RequestContext(testUrl1, HttpMethod.GET); await config.applySecurityAuthentication(requestContext); - expect(requestContext.getHeaders()).to.not.be.undefined; - if (requestContext.getHeaders()) { - expect(requestContext.getHeaders()['Authorization']).to.equal(`Bearer ${token}`); - } + strictEqual(requestContext.getHeaders()?.['Authorization'], `Bearer ${token}`); }); it('should exec succesfully with spaces in cmd', async () => { // TODO: fix this test for Windows @@ -290,11 +274,8 @@ describe('GoogleCloudPlatformAuth', () => { }, } as User, ); - let requestContext = new RequestContext(testUrl1, HttpMethod.GET); + const requestContext = new RequestContext(testUrl1, HttpMethod.GET); await config.applySecurityAuthentication(requestContext); - expect(requestContext.getHeaders()).to.not.be.undefined; - if (requestContext.getHeaders()) { - expect(requestContext.getHeaders()['Authorization']).to.equal(`Bearer ${token}`); - } + strictEqual(requestContext.getHeaders()?.['Authorization'], `Bearer ${token}`); }); }); diff --git a/src/gen/.openapi-generator/COMMIT b/src/gen/.openapi-generator/COMMIT index d92fab4a97..a56708a808 100644 --- a/src/gen/.openapi-generator/COMMIT +++ b/src/gen/.openapi-generator/COMMIT @@ -1,2 +1,2 @@ -Requested Commit/Tag : 06f0b68eeecf61f0a78e1a1db6f7db67c2872e4b -Actual Commit : 06f0b68eeecf61f0a78e1a1db6f7db67c2872e4b +Requested Commit/Tag : d06ed32df0a30fe12a1c7ba98722c12e867b6060 +Actual Commit : d06ed32df0a30fe12a1c7ba98722c12e867b6060 diff --git a/src/gen/.openapi-generator/FILES b/src/gen/.openapi-generator/FILES index 91828fd7dd..46e2987185 100644 --- a/src/gen/.openapi-generator/FILES +++ b/src/gen/.openapi-generator/FILES @@ -13,7 +13,6 @@ AppsApi.md AppsV1Api.md AuthenticationApi.md AuthenticationV1Api.md -AuthenticationV1beta1Api.md AuthorizationApi.md AuthorizationV1Api.md AutoscalingApi.md @@ -24,9 +23,11 @@ BatchV1Api.md CertificatesApi.md CertificatesV1Api.md CertificatesV1alpha1Api.md +CertificatesV1beta1Api.md CoordinationApi.md CoordinationV1Api.md CoordinationV1alpha2Api.md +CoordinationV1beta1Api.md CoreApi.md CoreV1Api.md CustomObjectsApi.md @@ -51,8 +52,10 @@ README.md RbacAuthorizationApi.md RbacAuthorizationV1Api.md ResourceApi.md +ResourceV1Api.md ResourceV1alpha3Api.md ResourceV1beta1Api.md +ResourceV1beta2Api.md SchedulingApi.md SchedulingV1Api.md StorageApi.md @@ -76,7 +79,6 @@ apis/AppsApi.ts apis/AppsV1Api.ts apis/AuthenticationApi.ts apis/AuthenticationV1Api.ts -apis/AuthenticationV1beta1Api.ts apis/AuthorizationApi.ts apis/AuthorizationV1Api.ts apis/AutoscalingApi.ts @@ -87,9 +89,11 @@ apis/BatchV1Api.ts apis/CertificatesApi.ts apis/CertificatesV1Api.ts apis/CertificatesV1alpha1Api.ts +apis/CertificatesV1beta1Api.ts apis/CoordinationApi.ts apis/CoordinationV1Api.ts apis/CoordinationV1alpha2Api.ts +apis/CoordinationV1beta1Api.ts apis/CoreApi.ts apis/CoreV1Api.ts apis/CustomObjectsApi.ts @@ -113,8 +117,10 @@ apis/PolicyV1Api.ts apis/RbacAuthorizationApi.ts apis/RbacAuthorizationV1Api.ts apis/ResourceApi.ts +apis/ResourceV1Api.ts apis/ResourceV1alpha3Api.ts apis/ResourceV1beta1Api.ts +apis/ResourceV1beta2Api.ts apis/SchedulingApi.ts apis/SchedulingV1Api.ts apis/StorageApi.ts @@ -144,6 +150,7 @@ models/CoreV1EndpointPort.ts models/CoreV1Event.ts models/CoreV1EventList.ts models/CoreV1EventSeries.ts +models/CoreV1ResourceClaim.ts models/DiscoveryV1EndpointPort.ts models/EventsV1Event.ts models/EventsV1EventList.ts @@ -151,6 +158,7 @@ models/EventsV1EventSeries.ts models/FlowcontrolV1Subject.ts models/ObjectSerializer.ts models/RbacV1Subject.ts +models/ResourceV1ResourceClaim.ts models/StorageV1TokenRequest.ts models/V1APIGroup.ts models/V1APIGroupList.ts @@ -165,6 +173,8 @@ models/V1APIVersions.ts models/V1AWSElasticBlockStoreVolumeSource.ts models/V1Affinity.ts models/V1AggregationRule.ts +models/V1AllocatedDeviceStatus.ts +models/V1AllocationResult.ts models/V1AppArmorProfile.ts models/V1AttachedVolume.ts models/V1AuditAnnotation.ts @@ -173,6 +183,7 @@ models/V1AzureFilePersistentVolumeSource.ts models/V1AzureFileVolumeSource.ts models/V1Binding.ts models/V1BoundObjectReference.ts +models/V1CELDeviceSelector.ts models/V1CSIDriver.ts models/V1CSIDriverList.ts models/V1CSIDriverSpec.ts @@ -185,6 +196,9 @@ models/V1CSIStorageCapacity.ts models/V1CSIStorageCapacityList.ts models/V1CSIVolumeSource.ts models/V1Capabilities.ts +models/V1CapacityRequestPolicy.ts +models/V1CapacityRequestPolicyRange.ts +models/V1CapacityRequirements.ts models/V1CephFSPersistentVolumeSource.ts models/V1CephFSVolumeSource.ts models/V1CertificateSigningRequest.ts @@ -212,9 +226,12 @@ models/V1ConfigMapNodeConfigSource.ts models/V1ConfigMapProjection.ts models/V1ConfigMapVolumeSource.ts models/V1Container.ts +models/V1ContainerExtendedResourceRequest.ts models/V1ContainerImage.ts models/V1ContainerPort.ts models/V1ContainerResizePolicy.ts +models/V1ContainerRestartRule.ts +models/V1ContainerRestartRuleOnExitCodes.ts models/V1ContainerState.ts models/V1ContainerStateRunning.ts models/V1ContainerStateTerminated.ts @@ -223,6 +240,8 @@ models/V1ContainerStatus.ts models/V1ContainerUser.ts models/V1ControllerRevision.ts models/V1ControllerRevisionList.ts +models/V1Counter.ts +models/V1CounterSet.ts models/V1CronJob.ts models/V1CronJobList.ts models/V1CronJobSpec.ts @@ -254,6 +273,25 @@ models/V1DeploymentList.ts models/V1DeploymentSpec.ts models/V1DeploymentStatus.ts models/V1DeploymentStrategy.ts +models/V1Device.ts +models/V1DeviceAllocationConfiguration.ts +models/V1DeviceAllocationResult.ts +models/V1DeviceAttribute.ts +models/V1DeviceCapacity.ts +models/V1DeviceClaim.ts +models/V1DeviceClaimConfiguration.ts +models/V1DeviceClass.ts +models/V1DeviceClassConfiguration.ts +models/V1DeviceClassList.ts +models/V1DeviceClassSpec.ts +models/V1DeviceConstraint.ts +models/V1DeviceCounterConsumption.ts +models/V1DeviceRequest.ts +models/V1DeviceRequestAllocationResult.ts +models/V1DeviceSelector.ts +models/V1DeviceSubRequest.ts +models/V1DeviceTaint.ts +models/V1DeviceToleration.ts models/V1DownwardAPIProjection.ts models/V1DownwardAPIVolumeFile.ts models/V1DownwardAPIVolumeSource.ts @@ -274,6 +312,7 @@ models/V1EphemeralContainer.ts models/V1EphemeralVolumeSource.ts models/V1EventSource.ts models/V1Eviction.ts +models/V1ExactDeviceRequest.ts models/V1ExecAction.ts models/V1ExemptPriorityLevelConfiguration.ts models/V1ExpressionWarning.ts @@ -281,6 +320,7 @@ models/V1ExternalDocumentation.ts models/V1FCVolumeSource.ts models/V1FieldSelectorAttributes.ts models/V1FieldSelectorRequirement.ts +models/V1FileKeySelector.ts models/V1FlexPersistentVolumeSource.ts models/V1FlexVolumeSource.ts models/V1FlockerVolumeSource.ts @@ -290,6 +330,7 @@ models/V1FlowSchemaCondition.ts models/V1FlowSchemaList.ts models/V1FlowSchemaSpec.ts models/V1FlowSchemaStatus.ts +models/V1ForNode.ts models/V1ForZone.ts models/V1GCEPersistentDiskVolumeSource.ts models/V1GRPCAction.ts @@ -309,6 +350,9 @@ models/V1HorizontalPodAutoscalerStatus.ts models/V1HostAlias.ts models/V1HostIP.ts models/V1HostPathVolumeSource.ts +models/V1IPAddress.ts +models/V1IPAddressList.ts +models/V1IPAddressSpec.ts models/V1IPBlock.ts models/V1ISCSIPersistentVolumeSource.ts models/V1ISCSIVolumeSource.ts @@ -371,6 +415,7 @@ models/V1NamespaceCondition.ts models/V1NamespaceList.ts models/V1NamespaceSpec.ts models/V1NamespaceStatus.ts +models/V1NetworkDeviceData.ts models/V1NetworkPolicy.ts models/V1NetworkPolicyEgressRule.ts models/V1NetworkPolicyIngressRule.ts @@ -394,6 +439,7 @@ models/V1NodeSelectorRequirement.ts models/V1NodeSelectorTerm.ts models/V1NodeSpec.ts models/V1NodeStatus.ts +models/V1NodeSwapStatus.ts models/V1NodeSystemInfo.ts models/V1NonResourceAttributes.ts models/V1NonResourcePolicyRule.ts @@ -401,10 +447,12 @@ models/V1NonResourceRule.ts models/V1ObjectFieldSelector.ts models/V1ObjectMeta.ts models/V1ObjectReference.ts +models/V1OpaqueDeviceConfiguration.ts models/V1Overhead.ts models/V1OwnerReference.ts models/V1ParamKind.ts models/V1ParamRef.ts +models/V1ParentReference.ts models/V1PersistentVolume.ts models/V1PersistentVolumeClaim.ts models/V1PersistentVolumeClaimCondition.ts @@ -421,6 +469,7 @@ models/V1Pod.ts models/V1PodAffinity.ts models/V1PodAffinityTerm.ts models/V1PodAntiAffinity.ts +models/V1PodCertificateProjection.ts models/V1PodCondition.ts models/V1PodDNSConfig.ts models/V1PodDNSConfigOption.ts @@ -428,6 +477,7 @@ models/V1PodDisruptionBudget.ts models/V1PodDisruptionBudgetList.ts models/V1PodDisruptionBudgetSpec.ts models/V1PodDisruptionBudgetStatus.ts +models/V1PodExtendedResourceClaimStatus.ts models/V1PodFailurePolicy.ts models/V1PodFailurePolicyOnExitCodesRequirement.ts models/V1PodFailurePolicyOnPodConditionsPattern.ts @@ -476,16 +526,26 @@ models/V1ReplicationControllerList.ts models/V1ReplicationControllerSpec.ts models/V1ReplicationControllerStatus.ts models/V1ResourceAttributes.ts -models/V1ResourceClaim.ts +models/V1ResourceClaimConsumerReference.ts +models/V1ResourceClaimList.ts +models/V1ResourceClaimSpec.ts +models/V1ResourceClaimStatus.ts +models/V1ResourceClaimTemplate.ts +models/V1ResourceClaimTemplateList.ts +models/V1ResourceClaimTemplateSpec.ts models/V1ResourceFieldSelector.ts models/V1ResourceHealth.ts models/V1ResourcePolicyRule.ts +models/V1ResourcePool.ts models/V1ResourceQuota.ts models/V1ResourceQuotaList.ts models/V1ResourceQuotaSpec.ts models/V1ResourceQuotaStatus.ts models/V1ResourceRequirements.ts models/V1ResourceRule.ts +models/V1ResourceSlice.ts +models/V1ResourceSliceList.ts +models/V1ResourceSliceSpec.ts models/V1ResourceStatus.ts models/V1Role.ts models/V1RoleBinding.ts @@ -530,6 +590,10 @@ models/V1ServiceAccountList.ts models/V1ServiceAccountSubject.ts models/V1ServiceAccountTokenProjection.ts models/V1ServiceBackendPort.ts +models/V1ServiceCIDR.ts +models/V1ServiceCIDRList.ts +models/V1ServiceCIDRSpec.ts +models/V1ServiceCIDRStatus.ts models/V1ServiceList.ts models/V1ServicePort.ts models/V1ServiceSpec.ts @@ -594,6 +658,8 @@ models/V1VolumeAttachmentList.ts models/V1VolumeAttachmentSource.ts models/V1VolumeAttachmentSpec.ts models/V1VolumeAttachmentStatus.ts +models/V1VolumeAttributesClass.ts +models/V1VolumeAttributesClassList.ts models/V1VolumeDevice.ts models/V1VolumeError.ts models/V1VolumeMount.ts @@ -626,6 +692,10 @@ models/V1alpha1Mutation.ts models/V1alpha1NamedRuleWithOperations.ts models/V1alpha1ParamKind.ts models/V1alpha1ParamRef.ts +models/V1alpha1PodCertificateRequest.ts +models/V1alpha1PodCertificateRequestList.ts +models/V1alpha1PodCertificateRequestSpec.ts +models/V1alpha1PodCertificateRequestStatus.ts models/V1alpha1ServerStorageVersion.ts models/V1alpha1StorageVersion.ts models/V1alpha1StorageVersionCondition.ts @@ -641,43 +711,26 @@ models/V1alpha1VolumeAttributesClassList.ts models/V1alpha2LeaseCandidate.ts models/V1alpha2LeaseCandidateList.ts models/V1alpha2LeaseCandidateSpec.ts -models/V1alpha3AllocatedDeviceStatus.ts -models/V1alpha3AllocationResult.ts -models/V1alpha3BasicDevice.ts models/V1alpha3CELDeviceSelector.ts -models/V1alpha3Device.ts -models/V1alpha3DeviceAllocationConfiguration.ts -models/V1alpha3DeviceAllocationResult.ts -models/V1alpha3DeviceAttribute.ts -models/V1alpha3DeviceClaim.ts -models/V1alpha3DeviceClaimConfiguration.ts -models/V1alpha3DeviceClass.ts -models/V1alpha3DeviceClassConfiguration.ts -models/V1alpha3DeviceClassList.ts -models/V1alpha3DeviceClassSpec.ts -models/V1alpha3DeviceConstraint.ts -models/V1alpha3DeviceRequest.ts -models/V1alpha3DeviceRequestAllocationResult.ts models/V1alpha3DeviceSelector.ts -models/V1alpha3NetworkDeviceData.ts -models/V1alpha3OpaqueDeviceConfiguration.ts -models/V1alpha3ResourceClaim.ts -models/V1alpha3ResourceClaimConsumerReference.ts -models/V1alpha3ResourceClaimList.ts -models/V1alpha3ResourceClaimSpec.ts -models/V1alpha3ResourceClaimStatus.ts -models/V1alpha3ResourceClaimTemplate.ts -models/V1alpha3ResourceClaimTemplateList.ts -models/V1alpha3ResourceClaimTemplateSpec.ts -models/V1alpha3ResourcePool.ts -models/V1alpha3ResourceSlice.ts -models/V1alpha3ResourceSliceList.ts -models/V1alpha3ResourceSliceSpec.ts +models/V1alpha3DeviceTaint.ts +models/V1alpha3DeviceTaintRule.ts +models/V1alpha3DeviceTaintRuleList.ts +models/V1alpha3DeviceTaintRuleSpec.ts +models/V1alpha3DeviceTaintSelector.ts models/V1beta1AllocatedDeviceStatus.ts models/V1beta1AllocationResult.ts -models/V1beta1AuditAnnotation.ts +models/V1beta1ApplyConfiguration.ts models/V1beta1BasicDevice.ts models/V1beta1CELDeviceSelector.ts +models/V1beta1CapacityRequestPolicy.ts +models/V1beta1CapacityRequestPolicyRange.ts +models/V1beta1CapacityRequirements.ts +models/V1beta1ClusterTrustBundle.ts +models/V1beta1ClusterTrustBundleList.ts +models/V1beta1ClusterTrustBundleSpec.ts +models/V1beta1Counter.ts +models/V1beta1CounterSet.ts models/V1beta1Device.ts models/V1beta1DeviceAllocationConfiguration.ts models/V1beta1DeviceAllocationResult.ts @@ -690,15 +743,29 @@ models/V1beta1DeviceClassConfiguration.ts models/V1beta1DeviceClassList.ts models/V1beta1DeviceClassSpec.ts models/V1beta1DeviceConstraint.ts +models/V1beta1DeviceCounterConsumption.ts models/V1beta1DeviceRequest.ts models/V1beta1DeviceRequestAllocationResult.ts models/V1beta1DeviceSelector.ts -models/V1beta1ExpressionWarning.ts +models/V1beta1DeviceSubRequest.ts +models/V1beta1DeviceTaint.ts +models/V1beta1DeviceToleration.ts models/V1beta1IPAddress.ts models/V1beta1IPAddressList.ts models/V1beta1IPAddressSpec.ts +models/V1beta1JSONPatch.ts +models/V1beta1LeaseCandidate.ts +models/V1beta1LeaseCandidateList.ts +models/V1beta1LeaseCandidateSpec.ts models/V1beta1MatchCondition.ts models/V1beta1MatchResources.ts +models/V1beta1MutatingAdmissionPolicy.ts +models/V1beta1MutatingAdmissionPolicyBinding.ts +models/V1beta1MutatingAdmissionPolicyBindingList.ts +models/V1beta1MutatingAdmissionPolicyBindingSpec.ts +models/V1beta1MutatingAdmissionPolicyList.ts +models/V1beta1MutatingAdmissionPolicySpec.ts +models/V1beta1Mutation.ts models/V1beta1NamedRuleWithOperations.ts models/V1beta1NetworkDeviceData.ts models/V1beta1OpaqueDeviceConfiguration.ts @@ -717,24 +784,55 @@ models/V1beta1ResourcePool.ts models/V1beta1ResourceSlice.ts models/V1beta1ResourceSliceList.ts models/V1beta1ResourceSliceSpec.ts -models/V1beta1SelfSubjectReview.ts -models/V1beta1SelfSubjectReviewStatus.ts models/V1beta1ServiceCIDR.ts models/V1beta1ServiceCIDRList.ts models/V1beta1ServiceCIDRSpec.ts models/V1beta1ServiceCIDRStatus.ts -models/V1beta1TypeChecking.ts -models/V1beta1ValidatingAdmissionPolicy.ts -models/V1beta1ValidatingAdmissionPolicyBinding.ts -models/V1beta1ValidatingAdmissionPolicyBindingList.ts -models/V1beta1ValidatingAdmissionPolicyBindingSpec.ts -models/V1beta1ValidatingAdmissionPolicyList.ts -models/V1beta1ValidatingAdmissionPolicySpec.ts -models/V1beta1ValidatingAdmissionPolicyStatus.ts -models/V1beta1Validation.ts models/V1beta1Variable.ts models/V1beta1VolumeAttributesClass.ts models/V1beta1VolumeAttributesClassList.ts +models/V1beta2AllocatedDeviceStatus.ts +models/V1beta2AllocationResult.ts +models/V1beta2CELDeviceSelector.ts +models/V1beta2CapacityRequestPolicy.ts +models/V1beta2CapacityRequestPolicyRange.ts +models/V1beta2CapacityRequirements.ts +models/V1beta2Counter.ts +models/V1beta2CounterSet.ts +models/V1beta2Device.ts +models/V1beta2DeviceAllocationConfiguration.ts +models/V1beta2DeviceAllocationResult.ts +models/V1beta2DeviceAttribute.ts +models/V1beta2DeviceCapacity.ts +models/V1beta2DeviceClaim.ts +models/V1beta2DeviceClaimConfiguration.ts +models/V1beta2DeviceClass.ts +models/V1beta2DeviceClassConfiguration.ts +models/V1beta2DeviceClassList.ts +models/V1beta2DeviceClassSpec.ts +models/V1beta2DeviceConstraint.ts +models/V1beta2DeviceCounterConsumption.ts +models/V1beta2DeviceRequest.ts +models/V1beta2DeviceRequestAllocationResult.ts +models/V1beta2DeviceSelector.ts +models/V1beta2DeviceSubRequest.ts +models/V1beta2DeviceTaint.ts +models/V1beta2DeviceToleration.ts +models/V1beta2ExactDeviceRequest.ts +models/V1beta2NetworkDeviceData.ts +models/V1beta2OpaqueDeviceConfiguration.ts +models/V1beta2ResourceClaim.ts +models/V1beta2ResourceClaimConsumerReference.ts +models/V1beta2ResourceClaimList.ts +models/V1beta2ResourceClaimSpec.ts +models/V1beta2ResourceClaimStatus.ts +models/V1beta2ResourceClaimTemplate.ts +models/V1beta2ResourceClaimTemplateList.ts +models/V1beta2ResourceClaimTemplateSpec.ts +models/V1beta2ResourcePool.ts +models/V1beta2ResourceSlice.ts +models/V1beta2ResourceSliceList.ts +models/V1beta2ResourceSliceSpec.ts models/V2ContainerResourceMetricSource.ts models/V2ContainerResourceMetricStatus.ts models/V2CrossVersionObjectReference.ts diff --git a/src/gen/.openapi-generator/VERSION b/src/gen/.openapi-generator/VERSION index 8841191263..fc74d6ceba 100644 --- a/src/gen/.openapi-generator/VERSION +++ b/src/gen/.openapi-generator/VERSION @@ -1 +1 @@ -7.11.0-SNAPSHOT +7.15.0-SNAPSHOT diff --git a/src/gen/.openapi-generator/swagger.json-default.sha256 b/src/gen/.openapi-generator/swagger.json-default.sha256 index b379cbc32d..578185bae9 100644 --- a/src/gen/.openapi-generator/swagger.json-default.sha256 +++ b/src/gen/.openapi-generator/swagger.json-default.sha256 @@ -1 +1 @@ -9717e402acf295f45e847aa3c3672497b8bbfad5b747a01de8e857c7c2142e46 \ No newline at end of file +3efca78d56ffd7ba8786561b0a496d57aff5485bd5c170d11cde9858bb53d53f \ No newline at end of file diff --git a/src/gen/AdmissionregistrationV1beta1Api.md b/src/gen/AdmissionregistrationV1beta1Api.md index 4e47737e28..41b35289ea 100644 --- a/src/gen/AdmissionregistrationV1beta1Api.md +++ b/src/gen/AdmissionregistrationV1beta1Api.md @@ -4,42 +4,39 @@ All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**createValidatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#createValidatingAdmissionPolicy) | **POST** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies | -[**createValidatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#createValidatingAdmissionPolicyBinding) | **POST** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings | -[**deleteCollectionValidatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#deleteCollectionValidatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies | -[**deleteCollectionValidatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#deleteCollectionValidatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings | -[**deleteValidatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#deleteValidatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name} | -[**deleteValidatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#deleteValidatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name} | +[**createMutatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#createMutatingAdmissionPolicy) | **POST** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies | +[**createMutatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#createMutatingAdmissionPolicyBinding) | **POST** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings | +[**deleteCollectionMutatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#deleteCollectionMutatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies | +[**deleteCollectionMutatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#deleteCollectionMutatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings | +[**deleteMutatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#deleteMutatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name} | +[**deleteMutatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#deleteMutatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name} | [**getAPIResources**](AdmissionregistrationV1beta1Api.md#getAPIResources) | **GET** /apis/admissionregistration.k8s.io/v1beta1/ | -[**listValidatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#listValidatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies | -[**listValidatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#listValidatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings | -[**patchValidatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#patchValidatingAdmissionPolicy) | **PATCH** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name} | -[**patchValidatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#patchValidatingAdmissionPolicyBinding) | **PATCH** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name} | -[**patchValidatingAdmissionPolicyStatus**](AdmissionregistrationV1beta1Api.md#patchValidatingAdmissionPolicyStatus) | **PATCH** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status | -[**readValidatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#readValidatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name} | -[**readValidatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#readValidatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name} | -[**readValidatingAdmissionPolicyStatus**](AdmissionregistrationV1beta1Api.md#readValidatingAdmissionPolicyStatus) | **GET** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status | -[**replaceValidatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#replaceValidatingAdmissionPolicy) | **PUT** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name} | -[**replaceValidatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#replaceValidatingAdmissionPolicyBinding) | **PUT** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name} | -[**replaceValidatingAdmissionPolicyStatus**](AdmissionregistrationV1beta1Api.md#replaceValidatingAdmissionPolicyStatus) | **PUT** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status | +[**listMutatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#listMutatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies | +[**listMutatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#listMutatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings | +[**patchMutatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#patchMutatingAdmissionPolicy) | **PATCH** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name} | +[**patchMutatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#patchMutatingAdmissionPolicyBinding) | **PATCH** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name} | +[**readMutatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#readMutatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name} | +[**readMutatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#readMutatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name} | +[**replaceMutatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#replaceMutatingAdmissionPolicy) | **PUT** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name} | +[**replaceMutatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#replaceMutatingAdmissionPolicyBinding) | **PUT** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name} | -# **createValidatingAdmissionPolicy** -> V1beta1ValidatingAdmissionPolicy createValidatingAdmissionPolicy(body) +# **createMutatingAdmissionPolicy** +> V1beta1MutatingAdmissionPolicy createMutatingAdmissionPolicy(body) -create a ValidatingAdmissionPolicy +create a MutatingAdmissionPolicy ### Example ```typescript import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiCreateValidatingAdmissionPolicyRequest } from ''; +import type { AdmissionregistrationV1beta1ApiCreateMutatingAdmissionPolicyRequest } from ''; const configuration = createConfiguration(); const apiInstance = new AdmissionregistrationV1beta1Api(configuration); -const request: AdmissionregistrationV1beta1ApiCreateValidatingAdmissionPolicyRequest = { +const request: AdmissionregistrationV1beta1ApiCreateMutatingAdmissionPolicyRequest = { body: { apiVersion: "apiVersion_example", @@ -87,12 +84,6 @@ const request: AdmissionregistrationV1beta1ApiCreateValidatingAdmissionPolicyReq uid: "uid_example", }, spec: { - auditAnnotations: [ - { - key: "key_example", - valueExpression: "valueExpression_example", - }, - ], failurePolicy: "failurePolicy_example", matchConditions: [ { @@ -171,18 +162,22 @@ const request: AdmissionregistrationV1beta1ApiCreateValidatingAdmissionPolicyReq }, ], }, + mutations: [ + { + applyConfiguration: { + expression: "expression_example", + }, + jsonPatch: { + expression: "expression_example", + }, + patchType: "patchType_example", + }, + ], paramKind: { apiVersion: "apiVersion_example", kind: "kind_example", }, - validations: [ - { - expression: "expression_example", - message: "message_example", - messageExpression: "messageExpression_example", - reason: "reason_example", - }, - ], + reinvocationPolicy: "reinvocationPolicy_example", variables: [ { expression: "expression_example", @@ -190,27 +185,6 @@ const request: AdmissionregistrationV1beta1ApiCreateValidatingAdmissionPolicyReq }, ], }, - status: { - conditions: [ - { - lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), - message: "message_example", - observedGeneration: 1, - reason: "reason_example", - status: "status_example", - type: "type_example", - }, - ], - observedGeneration: 1, - typeChecking: { - expressionWarnings: [ - { - fieldRef: "fieldRef_example", - warning: "warning_example", - }, - ], - }, - }, }, // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", @@ -222,7 +196,7 @@ const request: AdmissionregistrationV1beta1ApiCreateValidatingAdmissionPolicyReq fieldValidation: "fieldValidation_example", }; -const data = await apiInstance.createValidatingAdmissionPolicy(request); +const data = await apiInstance.createMutatingAdmissionPolicy(request); console.log('API called successfully. Returned data:', data); ``` @@ -231,7 +205,7 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **V1beta1ValidatingAdmissionPolicy**| | + **body** | **V1beta1MutatingAdmissionPolicy**| | **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined @@ -240,7 +214,7 @@ Name | Type | Description | Notes ### Return type -**V1beta1ValidatingAdmissionPolicy** +**V1beta1MutatingAdmissionPolicy** ### Authorization @@ -262,22 +236,22 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **createValidatingAdmissionPolicyBinding** -> V1beta1ValidatingAdmissionPolicyBinding createValidatingAdmissionPolicyBinding(body) +# **createMutatingAdmissionPolicyBinding** +> V1beta1MutatingAdmissionPolicyBinding createMutatingAdmissionPolicyBinding(body) -create a ValidatingAdmissionPolicyBinding +create a MutatingAdmissionPolicyBinding ### Example ```typescript import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiCreateValidatingAdmissionPolicyBindingRequest } from ''; +import type { AdmissionregistrationV1beta1ApiCreateMutatingAdmissionPolicyBindingRequest } from ''; const configuration = createConfiguration(); const apiInstance = new AdmissionregistrationV1beta1Api(configuration); -const request: AdmissionregistrationV1beta1ApiCreateValidatingAdmissionPolicyBindingRequest = { +const request: AdmissionregistrationV1beta1ApiCreateMutatingAdmissionPolicyBindingRequest = { body: { apiVersion: "apiVersion_example", @@ -416,9 +390,6 @@ const request: AdmissionregistrationV1beta1ApiCreateValidatingAdmissionPolicyBin }, }, policyName: "policyName_example", - validationActions: [ - "validationActions_example", - ], }, }, // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) @@ -431,7 +402,7 @@ const request: AdmissionregistrationV1beta1ApiCreateValidatingAdmissionPolicyBin fieldValidation: "fieldValidation_example", }; -const data = await apiInstance.createValidatingAdmissionPolicyBinding(request); +const data = await apiInstance.createMutatingAdmissionPolicyBinding(request); console.log('API called successfully. Returned data:', data); ``` @@ -440,7 +411,7 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **V1beta1ValidatingAdmissionPolicyBinding**| | + **body** | **V1beta1MutatingAdmissionPolicyBinding**| | **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined @@ -449,7 +420,7 @@ Name | Type | Description | Notes ### Return type -**V1beta1ValidatingAdmissionPolicyBinding** +**V1beta1MutatingAdmissionPolicyBinding** ### Authorization @@ -471,22 +442,22 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **deleteCollectionValidatingAdmissionPolicy** -> V1Status deleteCollectionValidatingAdmissionPolicy() +# **deleteCollectionMutatingAdmissionPolicy** +> V1Status deleteCollectionMutatingAdmissionPolicy() -delete collection of ValidatingAdmissionPolicy +delete collection of MutatingAdmissionPolicy ### Example ```typescript import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiDeleteCollectionValidatingAdmissionPolicyRequest } from ''; +import type { AdmissionregistrationV1beta1ApiDeleteCollectionMutatingAdmissionPolicyRequest } from ''; const configuration = createConfiguration(); const apiInstance = new AdmissionregistrationV1beta1Api(configuration); -const request: AdmissionregistrationV1beta1ApiDeleteCollectionValidatingAdmissionPolicyRequest = { +const request: AdmissionregistrationV1beta1ApiDeleteCollectionMutatingAdmissionPolicyRequest = { // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -533,7 +504,7 @@ const request: AdmissionregistrationV1beta1ApiDeleteCollectionValidatingAdmissio }, }; -const data = await apiInstance.deleteCollectionValidatingAdmissionPolicy(request); +const data = await apiInstance.deleteCollectionMutatingAdmissionPolicy(request); console.log('API called successfully. Returned data:', data); ``` @@ -581,22 +552,22 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **deleteCollectionValidatingAdmissionPolicyBinding** -> V1Status deleteCollectionValidatingAdmissionPolicyBinding() +# **deleteCollectionMutatingAdmissionPolicyBinding** +> V1Status deleteCollectionMutatingAdmissionPolicyBinding() -delete collection of ValidatingAdmissionPolicyBinding +delete collection of MutatingAdmissionPolicyBinding ### Example ```typescript import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiDeleteCollectionValidatingAdmissionPolicyBindingRequest } from ''; +import type { AdmissionregistrationV1beta1ApiDeleteCollectionMutatingAdmissionPolicyBindingRequest } from ''; const configuration = createConfiguration(); const apiInstance = new AdmissionregistrationV1beta1Api(configuration); -const request: AdmissionregistrationV1beta1ApiDeleteCollectionValidatingAdmissionPolicyBindingRequest = { +const request: AdmissionregistrationV1beta1ApiDeleteCollectionMutatingAdmissionPolicyBindingRequest = { // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -643,7 +614,7 @@ const request: AdmissionregistrationV1beta1ApiDeleteCollectionValidatingAdmissio }, }; -const data = await apiInstance.deleteCollectionValidatingAdmissionPolicyBinding(request); +const data = await apiInstance.deleteCollectionMutatingAdmissionPolicyBinding(request); console.log('API called successfully. Returned data:', data); ``` @@ -691,23 +662,23 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **deleteValidatingAdmissionPolicy** -> V1Status deleteValidatingAdmissionPolicy() +# **deleteMutatingAdmissionPolicy** +> V1Status deleteMutatingAdmissionPolicy() -delete a ValidatingAdmissionPolicy +delete a MutatingAdmissionPolicy ### Example ```typescript import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiDeleteValidatingAdmissionPolicyRequest } from ''; +import type { AdmissionregistrationV1beta1ApiDeleteMutatingAdmissionPolicyRequest } from ''; const configuration = createConfiguration(); const apiInstance = new AdmissionregistrationV1beta1Api(configuration); -const request: AdmissionregistrationV1beta1ApiDeleteValidatingAdmissionPolicyRequest = { - // name of the ValidatingAdmissionPolicy +const request: AdmissionregistrationV1beta1ApiDeleteMutatingAdmissionPolicyRequest = { + // name of the MutatingAdmissionPolicy name: "name_example", // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", @@ -739,7 +710,7 @@ const request: AdmissionregistrationV1beta1ApiDeleteValidatingAdmissionPolicyReq }, }; -const data = await apiInstance.deleteValidatingAdmissionPolicy(request); +const data = await apiInstance.deleteMutatingAdmissionPolicy(request); console.log('API called successfully. Returned data:', data); ``` @@ -749,7 +720,7 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | **V1DeleteOptions**| | - **name** | [**string**] | name of the ValidatingAdmissionPolicy | defaults to undefined + **name** | [**string**] | name of the MutatingAdmissionPolicy | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined @@ -781,23 +752,23 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **deleteValidatingAdmissionPolicyBinding** -> V1Status deleteValidatingAdmissionPolicyBinding() +# **deleteMutatingAdmissionPolicyBinding** +> V1Status deleteMutatingAdmissionPolicyBinding() -delete a ValidatingAdmissionPolicyBinding +delete a MutatingAdmissionPolicyBinding ### Example ```typescript import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiDeleteValidatingAdmissionPolicyBindingRequest } from ''; +import type { AdmissionregistrationV1beta1ApiDeleteMutatingAdmissionPolicyBindingRequest } from ''; const configuration = createConfiguration(); const apiInstance = new AdmissionregistrationV1beta1Api(configuration); -const request: AdmissionregistrationV1beta1ApiDeleteValidatingAdmissionPolicyBindingRequest = { - // name of the ValidatingAdmissionPolicyBinding +const request: AdmissionregistrationV1beta1ApiDeleteMutatingAdmissionPolicyBindingRequest = { + // name of the MutatingAdmissionPolicyBinding name: "name_example", // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", @@ -829,7 +800,7 @@ const request: AdmissionregistrationV1beta1ApiDeleteValidatingAdmissionPolicyBin }, }; -const data = await apiInstance.deleteValidatingAdmissionPolicyBinding(request); +const data = await apiInstance.deleteMutatingAdmissionPolicyBinding(request); console.log('API called successfully. Returned data:', data); ``` @@ -839,7 +810,7 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | **V1DeleteOptions**| | - **name** | [**string**] | name of the ValidatingAdmissionPolicyBinding | defaults to undefined + **name** | [**string**] | name of the MutatingAdmissionPolicyBinding | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined @@ -918,22 +889,22 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **listValidatingAdmissionPolicy** -> V1beta1ValidatingAdmissionPolicyList listValidatingAdmissionPolicy() +# **listMutatingAdmissionPolicy** +> V1beta1MutatingAdmissionPolicyList listMutatingAdmissionPolicy() -list or watch objects of kind ValidatingAdmissionPolicy +list or watch objects of kind MutatingAdmissionPolicy ### Example ```typescript import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiListValidatingAdmissionPolicyRequest } from ''; +import type { AdmissionregistrationV1beta1ApiListMutatingAdmissionPolicyRequest } from ''; const configuration = createConfiguration(); const apiInstance = new AdmissionregistrationV1beta1Api(configuration); -const request: AdmissionregistrationV1beta1ApiListValidatingAdmissionPolicyRequest = { +const request: AdmissionregistrationV1beta1ApiListMutatingAdmissionPolicyRequest = { // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) @@ -958,7 +929,7 @@ const request: AdmissionregistrationV1beta1ApiListValidatingAdmissionPolicyReque watch: true, }; -const data = await apiInstance.listValidatingAdmissionPolicy(request); +const data = await apiInstance.listMutatingAdmissionPolicy(request); console.log('API called successfully. Returned data:', data); ``` @@ -982,7 +953,7 @@ Name | Type | Description | Notes ### Return type -**V1beta1ValidatingAdmissionPolicyList** +**V1beta1MutatingAdmissionPolicyList** ### Authorization @@ -1002,22 +973,22 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **listValidatingAdmissionPolicyBinding** -> V1beta1ValidatingAdmissionPolicyBindingList listValidatingAdmissionPolicyBinding() +# **listMutatingAdmissionPolicyBinding** +> V1beta1MutatingAdmissionPolicyBindingList listMutatingAdmissionPolicyBinding() -list or watch objects of kind ValidatingAdmissionPolicyBinding +list or watch objects of kind MutatingAdmissionPolicyBinding ### Example ```typescript import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiListValidatingAdmissionPolicyBindingRequest } from ''; +import type { AdmissionregistrationV1beta1ApiListMutatingAdmissionPolicyBindingRequest } from ''; const configuration = createConfiguration(); const apiInstance = new AdmissionregistrationV1beta1Api(configuration); -const request: AdmissionregistrationV1beta1ApiListValidatingAdmissionPolicyBindingRequest = { +const request: AdmissionregistrationV1beta1ApiListMutatingAdmissionPolicyBindingRequest = { // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) @@ -1042,7 +1013,7 @@ const request: AdmissionregistrationV1beta1ApiListValidatingAdmissionPolicyBindi watch: true, }; -const data = await apiInstance.listValidatingAdmissionPolicyBinding(request); +const data = await apiInstance.listMutatingAdmissionPolicyBinding(request); console.log('API called successfully. Returned data:', data); ``` @@ -1066,7 +1037,7 @@ Name | Type | Description | Notes ### Return type -**V1beta1ValidatingAdmissionPolicyBindingList** +**V1beta1MutatingAdmissionPolicyBindingList** ### Authorization @@ -1086,23 +1057,23 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **patchValidatingAdmissionPolicy** -> V1beta1ValidatingAdmissionPolicy patchValidatingAdmissionPolicy(body) +# **patchMutatingAdmissionPolicy** +> V1beta1MutatingAdmissionPolicy patchMutatingAdmissionPolicy(body) -partially update the specified ValidatingAdmissionPolicy +partially update the specified MutatingAdmissionPolicy ### Example ```typescript import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiPatchValidatingAdmissionPolicyRequest } from ''; +import type { AdmissionregistrationV1beta1ApiPatchMutatingAdmissionPolicyRequest } from ''; const configuration = createConfiguration(); const apiInstance = new AdmissionregistrationV1beta1Api(configuration); -const request: AdmissionregistrationV1beta1ApiPatchValidatingAdmissionPolicyRequest = { - // name of the ValidatingAdmissionPolicy +const request: AdmissionregistrationV1beta1ApiPatchMutatingAdmissionPolicyRequest = { + // name of the MutatingAdmissionPolicy name: "name_example", body: {}, @@ -1118,7 +1089,7 @@ const request: AdmissionregistrationV1beta1ApiPatchValidatingAdmissionPolicyRequ force: true, }; -const data = await apiInstance.patchValidatingAdmissionPolicy(request); +const data = await apiInstance.patchMutatingAdmissionPolicy(request); console.log('API called successfully. Returned data:', data); ``` @@ -1128,7 +1099,7 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | **any**| | - **name** | [**string**] | name of the ValidatingAdmissionPolicy | defaults to undefined + **name** | [**string**] | name of the MutatingAdmissionPolicy | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined @@ -1138,7 +1109,7 @@ Name | Type | Description | Notes ### Return type -**V1beta1ValidatingAdmissionPolicy** +**V1beta1MutatingAdmissionPolicy** ### Authorization @@ -1159,23 +1130,23 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **patchValidatingAdmissionPolicyBinding** -> V1beta1ValidatingAdmissionPolicyBinding patchValidatingAdmissionPolicyBinding(body) +# **patchMutatingAdmissionPolicyBinding** +> V1beta1MutatingAdmissionPolicyBinding patchMutatingAdmissionPolicyBinding(body) -partially update the specified ValidatingAdmissionPolicyBinding +partially update the specified MutatingAdmissionPolicyBinding ### Example ```typescript import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiPatchValidatingAdmissionPolicyBindingRequest } from ''; +import type { AdmissionregistrationV1beta1ApiPatchMutatingAdmissionPolicyBindingRequest } from ''; const configuration = createConfiguration(); const apiInstance = new AdmissionregistrationV1beta1Api(configuration); -const request: AdmissionregistrationV1beta1ApiPatchValidatingAdmissionPolicyBindingRequest = { - // name of the ValidatingAdmissionPolicyBinding +const request: AdmissionregistrationV1beta1ApiPatchMutatingAdmissionPolicyBindingRequest = { + // name of the MutatingAdmissionPolicyBinding name: "name_example", body: {}, @@ -1191,7 +1162,7 @@ const request: AdmissionregistrationV1beta1ApiPatchValidatingAdmissionPolicyBind force: true, }; -const data = await apiInstance.patchValidatingAdmissionPolicyBinding(request); +const data = await apiInstance.patchMutatingAdmissionPolicyBinding(request); console.log('API called successfully. Returned data:', data); ``` @@ -1201,7 +1172,7 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | **any**| | - **name** | [**string**] | name of the ValidatingAdmissionPolicyBinding | defaults to undefined + **name** | [**string**] | name of the MutatingAdmissionPolicyBinding | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined @@ -1211,7 +1182,7 @@ Name | Type | Description | Notes ### Return type -**V1beta1ValidatingAdmissionPolicyBinding** +**V1beta1MutatingAdmissionPolicyBinding** ### Authorization @@ -1232,159 +1203,29 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **patchValidatingAdmissionPolicyStatus** -> V1beta1ValidatingAdmissionPolicy patchValidatingAdmissionPolicyStatus(body) - -partially update status of the specified ValidatingAdmissionPolicy - -### Example - - -```typescript -import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiPatchValidatingAdmissionPolicyStatusRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new AdmissionregistrationV1beta1Api(configuration); - -const request: AdmissionregistrationV1beta1ApiPatchValidatingAdmissionPolicyStatusRequest = { - // name of the ValidatingAdmissionPolicy - name: "name_example", - - body: {}, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", - // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - force: true, -}; - -const data = await apiInstance.patchValidatingAdmissionPolicyStatus(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **any**| | - **name** | [**string**] | name of the ValidatingAdmissionPolicy | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined - **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined - - -### Return type - -**V1beta1ValidatingAdmissionPolicy** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **readValidatingAdmissionPolicy** -> V1beta1ValidatingAdmissionPolicy readValidatingAdmissionPolicy() - -read the specified ValidatingAdmissionPolicy - -### Example - - -```typescript -import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiReadValidatingAdmissionPolicyRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new AdmissionregistrationV1beta1Api(configuration); - -const request: AdmissionregistrationV1beta1ApiReadValidatingAdmissionPolicyRequest = { - // name of the ValidatingAdmissionPolicy - name: "name_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", -}; - -const data = await apiInstance.readValidatingAdmissionPolicy(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | [**string**] | name of the ValidatingAdmissionPolicy | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - - -### Return type - -**V1beta1ValidatingAdmissionPolicy** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **readValidatingAdmissionPolicyBinding** -> V1beta1ValidatingAdmissionPolicyBinding readValidatingAdmissionPolicyBinding() +# **readMutatingAdmissionPolicy** +> V1beta1MutatingAdmissionPolicy readMutatingAdmissionPolicy() -read the specified ValidatingAdmissionPolicyBinding +read the specified MutatingAdmissionPolicy ### Example ```typescript import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiReadValidatingAdmissionPolicyBindingRequest } from ''; +import type { AdmissionregistrationV1beta1ApiReadMutatingAdmissionPolicyRequest } from ''; const configuration = createConfiguration(); const apiInstance = new AdmissionregistrationV1beta1Api(configuration); -const request: AdmissionregistrationV1beta1ApiReadValidatingAdmissionPolicyBindingRequest = { - // name of the ValidatingAdmissionPolicyBinding +const request: AdmissionregistrationV1beta1ApiReadMutatingAdmissionPolicyRequest = { + // name of the MutatingAdmissionPolicy name: "name_example", // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", }; -const data = await apiInstance.readValidatingAdmissionPolicyBinding(request); +const data = await apiInstance.readMutatingAdmissionPolicy(request); console.log('API called successfully. Returned data:', data); ``` @@ -1393,13 +1234,13 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | [**string**] | name of the ValidatingAdmissionPolicyBinding | defaults to undefined + **name** | [**string**] | name of the MutatingAdmissionPolicy | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined ### Return type -**V1beta1ValidatingAdmissionPolicyBinding** +**V1beta1MutatingAdmissionPolicy** ### Authorization @@ -1419,29 +1260,29 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **readValidatingAdmissionPolicyStatus** -> V1beta1ValidatingAdmissionPolicy readValidatingAdmissionPolicyStatus() +# **readMutatingAdmissionPolicyBinding** +> V1beta1MutatingAdmissionPolicyBinding readMutatingAdmissionPolicyBinding() -read status of the specified ValidatingAdmissionPolicy +read the specified MutatingAdmissionPolicyBinding ### Example ```typescript import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiReadValidatingAdmissionPolicyStatusRequest } from ''; +import type { AdmissionregistrationV1beta1ApiReadMutatingAdmissionPolicyBindingRequest } from ''; const configuration = createConfiguration(); const apiInstance = new AdmissionregistrationV1beta1Api(configuration); -const request: AdmissionregistrationV1beta1ApiReadValidatingAdmissionPolicyStatusRequest = { - // name of the ValidatingAdmissionPolicy +const request: AdmissionregistrationV1beta1ApiReadMutatingAdmissionPolicyBindingRequest = { + // name of the MutatingAdmissionPolicyBinding name: "name_example", // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", }; -const data = await apiInstance.readValidatingAdmissionPolicyStatus(request); +const data = await apiInstance.readMutatingAdmissionPolicyBinding(request); console.log('API called successfully. Returned data:', data); ``` @@ -1450,13 +1291,13 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | [**string**] | name of the ValidatingAdmissionPolicy | defaults to undefined + **name** | [**string**] | name of the MutatingAdmissionPolicyBinding | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined ### Return type -**V1beta1ValidatingAdmissionPolicy** +**V1beta1MutatingAdmissionPolicyBinding** ### Authorization @@ -1476,23 +1317,23 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **replaceValidatingAdmissionPolicy** -> V1beta1ValidatingAdmissionPolicy replaceValidatingAdmissionPolicy(body) +# **replaceMutatingAdmissionPolicy** +> V1beta1MutatingAdmissionPolicy replaceMutatingAdmissionPolicy(body) -replace the specified ValidatingAdmissionPolicy +replace the specified MutatingAdmissionPolicy ### Example ```typescript import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyRequest } from ''; +import type { AdmissionregistrationV1beta1ApiReplaceMutatingAdmissionPolicyRequest } from ''; const configuration = createConfiguration(); const apiInstance = new AdmissionregistrationV1beta1Api(configuration); -const request: AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyRequest = { - // name of the ValidatingAdmissionPolicy +const request: AdmissionregistrationV1beta1ApiReplaceMutatingAdmissionPolicyRequest = { + // name of the MutatingAdmissionPolicy name: "name_example", body: { @@ -1541,12 +1382,6 @@ const request: AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyRe uid: "uid_example", }, spec: { - auditAnnotations: [ - { - key: "key_example", - valueExpression: "valueExpression_example", - }, - ], failurePolicy: "failurePolicy_example", matchConditions: [ { @@ -1625,18 +1460,22 @@ const request: AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyRe }, ], }, + mutations: [ + { + applyConfiguration: { + expression: "expression_example", + }, + jsonPatch: { + expression: "expression_example", + }, + patchType: "patchType_example", + }, + ], paramKind: { apiVersion: "apiVersion_example", kind: "kind_example", }, - validations: [ - { - expression: "expression_example", - message: "message_example", - messageExpression: "messageExpression_example", - reason: "reason_example", - }, - ], + reinvocationPolicy: "reinvocationPolicy_example", variables: [ { expression: "expression_example", @@ -1644,27 +1483,6 @@ const request: AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyRe }, ], }, - status: { - conditions: [ - { - lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), - message: "message_example", - observedGeneration: 1, - reason: "reason_example", - status: "status_example", - type: "type_example", - }, - ], - observedGeneration: 1, - typeChecking: { - expressionWarnings: [ - { - fieldRef: "fieldRef_example", - warning: "warning_example", - }, - ], - }, - }, }, // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", @@ -1676,7 +1494,7 @@ const request: AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyRe fieldValidation: "fieldValidation_example", }; -const data = await apiInstance.replaceValidatingAdmissionPolicy(request); +const data = await apiInstance.replaceMutatingAdmissionPolicy(request); console.log('API called successfully. Returned data:', data); ``` @@ -1685,8 +1503,8 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **V1beta1ValidatingAdmissionPolicy**| | - **name** | [**string**] | name of the ValidatingAdmissionPolicy | defaults to undefined + **body** | **V1beta1MutatingAdmissionPolicy**| | + **name** | [**string**] | name of the MutatingAdmissionPolicy | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined @@ -1695,7 +1513,7 @@ Name | Type | Description | Notes ### Return type -**V1beta1ValidatingAdmissionPolicy** +**V1beta1MutatingAdmissionPolicy** ### Authorization @@ -1716,23 +1534,23 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **replaceValidatingAdmissionPolicyBinding** -> V1beta1ValidatingAdmissionPolicyBinding replaceValidatingAdmissionPolicyBinding(body) +# **replaceMutatingAdmissionPolicyBinding** +> V1beta1MutatingAdmissionPolicyBinding replaceMutatingAdmissionPolicyBinding(body) -replace the specified ValidatingAdmissionPolicyBinding +replace the specified MutatingAdmissionPolicyBinding ### Example ```typescript import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyBindingRequest } from ''; +import type { AdmissionregistrationV1beta1ApiReplaceMutatingAdmissionPolicyBindingRequest } from ''; const configuration = createConfiguration(); const apiInstance = new AdmissionregistrationV1beta1Api(configuration); -const request: AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyBindingRequest = { - // name of the ValidatingAdmissionPolicyBinding +const request: AdmissionregistrationV1beta1ApiReplaceMutatingAdmissionPolicyBindingRequest = { + // name of the MutatingAdmissionPolicyBinding name: "name_example", body: { @@ -1872,249 +1690,6 @@ const request: AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyBi }, }, policyName: "policyName_example", - validationActions: [ - "validationActions_example", - ], - }, - }, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", -}; - -const data = await apiInstance.replaceValidatingAdmissionPolicyBinding(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **V1beta1ValidatingAdmissionPolicyBinding**| | - **name** | [**string**] | name of the ValidatingAdmissionPolicyBinding | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined - - -### Return type - -**V1beta1ValidatingAdmissionPolicyBinding** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **replaceValidatingAdmissionPolicyStatus** -> V1beta1ValidatingAdmissionPolicy replaceValidatingAdmissionPolicyStatus(body) - -replace status of the specified ValidatingAdmissionPolicy - -### Example - - -```typescript -import { createConfiguration, AdmissionregistrationV1beta1Api } from ''; -import type { AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyStatusRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new AdmissionregistrationV1beta1Api(configuration); - -const request: AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyStatusRequest = { - // name of the ValidatingAdmissionPolicy - name: "name_example", - - body: { - apiVersion: "apiVersion_example", - kind: "kind_example", - metadata: { - annotations: { - "key": "key_example", - }, - creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), - deletionGracePeriodSeconds: 1, - deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), - finalizers: [ - "finalizers_example", - ], - generateName: "generateName_example", - generation: 1, - labels: { - "key": "key_example", - }, - managedFields: [ - { - apiVersion: "apiVersion_example", - fieldsType: "fieldsType_example", - fieldsV1: {}, - manager: "manager_example", - operation: "operation_example", - subresource: "subresource_example", - time: new Date('1970-01-01T00:00:00.00Z'), - }, - ], - name: "name_example", - namespace: "namespace_example", - ownerReferences: [ - { - apiVersion: "apiVersion_example", - blockOwnerDeletion: true, - controller: true, - kind: "kind_example", - name: "name_example", - uid: "uid_example", - }, - ], - resourceVersion: "resourceVersion_example", - selfLink: "selfLink_example", - uid: "uid_example", - }, - spec: { - auditAnnotations: [ - { - key: "key_example", - valueExpression: "valueExpression_example", - }, - ], - failurePolicy: "failurePolicy_example", - matchConditions: [ - { - expression: "expression_example", - name: "name_example", - }, - ], - matchConstraints: { - excludeResourceRules: [ - { - apiGroups: [ - "apiGroups_example", - ], - apiVersions: [ - "apiVersions_example", - ], - operations: [ - "operations_example", - ], - resourceNames: [ - "resourceNames_example", - ], - resources: [ - "resources_example", - ], - scope: "scope_example", - }, - ], - matchPolicy: "matchPolicy_example", - namespaceSelector: { - matchExpressions: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], - matchLabels: { - "key": "key_example", - }, - }, - objectSelector: { - matchExpressions: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], - matchLabels: { - "key": "key_example", - }, - }, - resourceRules: [ - { - apiGroups: [ - "apiGroups_example", - ], - apiVersions: [ - "apiVersions_example", - ], - operations: [ - "operations_example", - ], - resourceNames: [ - "resourceNames_example", - ], - resources: [ - "resources_example", - ], - scope: "scope_example", - }, - ], - }, - paramKind: { - apiVersion: "apiVersion_example", - kind: "kind_example", - }, - validations: [ - { - expression: "expression_example", - message: "message_example", - messageExpression: "messageExpression_example", - reason: "reason_example", - }, - ], - variables: [ - { - expression: "expression_example", - name: "name_example", - }, - ], - }, - status: { - conditions: [ - { - lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), - message: "message_example", - observedGeneration: 1, - reason: "reason_example", - status: "status_example", - type: "type_example", - }, - ], - observedGeneration: 1, - typeChecking: { - expressionWarnings: [ - { - fieldRef: "fieldRef_example", - warning: "warning_example", - }, - ], - }, }, }, // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) @@ -2127,7 +1702,7 @@ const request: AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicySt fieldValidation: "fieldValidation_example", }; -const data = await apiInstance.replaceValidatingAdmissionPolicyStatus(request); +const data = await apiInstance.replaceMutatingAdmissionPolicyBinding(request); console.log('API called successfully. Returned data:', data); ``` @@ -2136,8 +1711,8 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **V1beta1ValidatingAdmissionPolicy**| | - **name** | [**string**] | name of the ValidatingAdmissionPolicy | defaults to undefined + **body** | **V1beta1MutatingAdmissionPolicyBinding**| | + **name** | [**string**] | name of the MutatingAdmissionPolicyBinding | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined @@ -2146,7 +1721,7 @@ Name | Type | Description | Notes ### Return type -**V1beta1ValidatingAdmissionPolicy** +**V1beta1MutatingAdmissionPolicyBinding** ### Authorization diff --git a/src/gen/AppsV1Api.md b/src/gen/AppsV1Api.md index c0a040adfe..086322b517 100644 --- a/src/gen/AppsV1Api.md +++ b/src/gen/AppsV1Api.md @@ -566,6 +566,12 @@ const request: AppsV1ApiCreateNamespacedDaemonSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -647,6 +653,7 @@ const request: AppsV1ApiCreateNamespacedDaemonSetRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -745,6 +752,17 @@ const request: AppsV1ApiCreateNamespacedDaemonSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -878,6 +896,12 @@ const request: AppsV1ApiCreateNamespacedDaemonSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -959,6 +983,7 @@ const request: AppsV1ApiCreateNamespacedDaemonSetRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -1057,6 +1082,17 @@ const request: AppsV1ApiCreateNamespacedDaemonSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -1166,6 +1202,7 @@ const request: AppsV1ApiCreateNamespacedDaemonSetRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -1193,6 +1230,12 @@ const request: AppsV1ApiCreateNamespacedDaemonSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -1274,6 +1317,7 @@ const request: AppsV1ApiCreateNamespacedDaemonSetRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -1372,6 +1416,17 @@ const request: AppsV1ApiCreateNamespacedDaemonSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -1906,6 +1961,14 @@ const request: AppsV1ApiCreateNamespacedDaemonSetRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -2462,6 +2525,12 @@ const request: AppsV1ApiCreateNamespacedDeploymentRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -2543,6 +2612,7 @@ const request: AppsV1ApiCreateNamespacedDeploymentRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -2641,6 +2711,17 @@ const request: AppsV1ApiCreateNamespacedDeploymentRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -2774,6 +2855,12 @@ const request: AppsV1ApiCreateNamespacedDeploymentRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -2855,6 +2942,7 @@ const request: AppsV1ApiCreateNamespacedDeploymentRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -2953,6 +3041,17 @@ const request: AppsV1ApiCreateNamespacedDeploymentRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -3062,6 +3161,7 @@ const request: AppsV1ApiCreateNamespacedDeploymentRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -3089,6 +3189,12 @@ const request: AppsV1ApiCreateNamespacedDeploymentRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -3170,6 +3276,7 @@ const request: AppsV1ApiCreateNamespacedDeploymentRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -3268,6 +3375,17 @@ const request: AppsV1ApiCreateNamespacedDeploymentRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -3802,6 +3920,14 @@ const request: AppsV1ApiCreateNamespacedDeploymentRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -3905,6 +4031,7 @@ const request: AppsV1ApiCreateNamespacedDeploymentRequest = { observedGeneration: 1, readyReplicas: 1, replicas: 1, + terminatingReplicas: 1, unavailableReplicas: 1, updatedReplicas: 1, }, @@ -4340,6 +4467,12 @@ const request: AppsV1ApiCreateNamespacedReplicaSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -4421,6 +4554,7 @@ const request: AppsV1ApiCreateNamespacedReplicaSetRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -4519,6 +4653,17 @@ const request: AppsV1ApiCreateNamespacedReplicaSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -4652,6 +4797,12 @@ const request: AppsV1ApiCreateNamespacedReplicaSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -4733,6 +4884,7 @@ const request: AppsV1ApiCreateNamespacedReplicaSetRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -4831,6 +4983,17 @@ const request: AppsV1ApiCreateNamespacedReplicaSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -4940,6 +5103,7 @@ const request: AppsV1ApiCreateNamespacedReplicaSetRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -4967,6 +5131,12 @@ const request: AppsV1ApiCreateNamespacedReplicaSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -5048,6 +5218,7 @@ const request: AppsV1ApiCreateNamespacedReplicaSetRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -5146,6 +5317,17 @@ const request: AppsV1ApiCreateNamespacedReplicaSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -5680,6 +5862,14 @@ const request: AppsV1ApiCreateNamespacedReplicaSetRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -5782,6 +5972,7 @@ const request: AppsV1ApiCreateNamespacedReplicaSetRequest = { observedGeneration: 1, readyReplicas: 1, replicas: 1, + terminatingReplicas: 1, }, }, // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) @@ -6225,6 +6416,12 @@ const request: AppsV1ApiCreateNamespacedStatefulSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -6306,6 +6503,7 @@ const request: AppsV1ApiCreateNamespacedStatefulSetRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -6404,6 +6602,17 @@ const request: AppsV1ApiCreateNamespacedStatefulSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -6537,6 +6746,12 @@ const request: AppsV1ApiCreateNamespacedStatefulSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -6618,6 +6833,7 @@ const request: AppsV1ApiCreateNamespacedStatefulSetRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -6716,6 +6932,17 @@ const request: AppsV1ApiCreateNamespacedStatefulSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -6825,6 +7052,7 @@ const request: AppsV1ApiCreateNamespacedStatefulSetRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -6852,6 +7080,12 @@ const request: AppsV1ApiCreateNamespacedStatefulSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -6933,6 +7167,7 @@ const request: AppsV1ApiCreateNamespacedStatefulSetRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -7031,6 +7266,17 @@ const request: AppsV1ApiCreateNamespacedStatefulSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -7565,6 +7811,14 @@ const request: AppsV1ApiCreateNamespacedStatefulSetRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -11917,6 +12171,12 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -11998,6 +12258,7 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -12096,6 +12357,17 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -12229,6 +12501,12 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -12310,6 +12588,7 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -12408,6 +12687,17 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -12517,6 +12807,7 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -12544,6 +12835,12 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -12625,6 +12922,7 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -12723,6 +13021,17 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -13257,6 +13566,14 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -13805,6 +14122,12 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -13886,6 +14209,7 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetStatusRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -13984,6 +14308,17 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -14117,6 +14452,12 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -14198,6 +14539,7 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetStatusRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -14296,6 +14638,17 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -14405,6 +14758,7 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetStatusRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -14432,6 +14786,12 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -14513,6 +14873,7 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetStatusRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -14611,6 +14972,17 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -15145,6 +15517,14 @@ const request: AppsV1ApiReplaceNamespacedDaemonSetStatusRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -15703,6 +16083,12 @@ const request: AppsV1ApiReplaceNamespacedDeploymentRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -15784,6 +16170,7 @@ const request: AppsV1ApiReplaceNamespacedDeploymentRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -15882,6 +16269,17 @@ const request: AppsV1ApiReplaceNamespacedDeploymentRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -16015,6 +16413,12 @@ const request: AppsV1ApiReplaceNamespacedDeploymentRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -16096,6 +16500,7 @@ const request: AppsV1ApiReplaceNamespacedDeploymentRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -16194,6 +16599,17 @@ const request: AppsV1ApiReplaceNamespacedDeploymentRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -16303,6 +16719,7 @@ const request: AppsV1ApiReplaceNamespacedDeploymentRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -16330,6 +16747,12 @@ const request: AppsV1ApiReplaceNamespacedDeploymentRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -16411,6 +16834,7 @@ const request: AppsV1ApiReplaceNamespacedDeploymentRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -16509,6 +16933,17 @@ const request: AppsV1ApiReplaceNamespacedDeploymentRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -17043,6 +17478,14 @@ const request: AppsV1ApiReplaceNamespacedDeploymentRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -17146,6 +17589,7 @@ const request: AppsV1ApiReplaceNamespacedDeploymentRequest = { observedGeneration: 1, readyReplicas: 1, replicas: 1, + terminatingReplicas: 1, unavailableReplicas: 1, updatedReplicas: 1, }, @@ -17718,6 +18162,12 @@ const request: AppsV1ApiReplaceNamespacedDeploymentStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -17799,6 +18249,7 @@ const request: AppsV1ApiReplaceNamespacedDeploymentStatusRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -17897,6 +18348,17 @@ const request: AppsV1ApiReplaceNamespacedDeploymentStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -18030,6 +18492,12 @@ const request: AppsV1ApiReplaceNamespacedDeploymentStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -18111,6 +18579,7 @@ const request: AppsV1ApiReplaceNamespacedDeploymentStatusRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -18209,6 +18678,17 @@ const request: AppsV1ApiReplaceNamespacedDeploymentStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -18318,6 +18798,7 @@ const request: AppsV1ApiReplaceNamespacedDeploymentStatusRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -18345,6 +18826,12 @@ const request: AppsV1ApiReplaceNamespacedDeploymentStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -18426,6 +18913,7 @@ const request: AppsV1ApiReplaceNamespacedDeploymentStatusRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -18524,6 +19012,17 @@ const request: AppsV1ApiReplaceNamespacedDeploymentStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -19058,6 +19557,14 @@ const request: AppsV1ApiReplaceNamespacedDeploymentStatusRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -19161,6 +19668,7 @@ const request: AppsV1ApiReplaceNamespacedDeploymentStatusRequest = { observedGeneration: 1, readyReplicas: 1, replicas: 1, + terminatingReplicas: 1, unavailableReplicas: 1, updatedReplicas: 1, }, @@ -19598,6 +20106,12 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -19679,6 +20193,7 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -19777,6 +20292,17 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -19910,6 +20436,12 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -19991,6 +20523,7 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -20089,6 +20622,17 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -20198,6 +20742,7 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -20225,6 +20770,12 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -20306,6 +20857,7 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -20404,6 +20956,17 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -20938,6 +21501,14 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -21040,6 +21611,7 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetRequest = { observedGeneration: 1, readyReplicas: 1, replicas: 1, + terminatingReplicas: 1, }, }, // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) @@ -21600,6 +22172,12 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -21681,6 +22259,7 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetStatusRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -21779,6 +22358,17 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -21912,6 +22502,12 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -21993,6 +22589,7 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetStatusRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -22091,6 +22688,17 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -22200,6 +22808,7 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetStatusRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -22227,6 +22836,12 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -22308,6 +22923,7 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetStatusRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -22406,6 +23022,17 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -22940,6 +23567,14 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetStatusRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -23042,6 +23677,7 @@ const request: AppsV1ApiReplaceNamespacedReplicaSetStatusRequest = { observedGeneration: 1, readyReplicas: 1, replicas: 1, + terminatingReplicas: 1, }, }, // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) @@ -23487,6 +24123,12 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -23568,6 +24210,7 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -23666,6 +24309,17 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -23799,6 +24453,12 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -23880,6 +24540,7 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -23978,6 +24639,17 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -24087,6 +24759,7 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -24114,6 +24787,12 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -24195,6 +24874,7 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -24293,6 +24973,17 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -24827,6 +25518,14 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -25630,6 +26329,12 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -25711,6 +26416,7 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetStatusRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -25809,6 +26515,17 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -25942,6 +26659,12 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -26023,6 +26746,7 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetStatusRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -26121,6 +26845,17 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -26230,6 +26965,7 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetStatusRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -26257,6 +26993,12 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -26338,6 +27080,7 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetStatusRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -26436,6 +27179,17 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -26970,6 +27724,14 @@ const request: AppsV1ApiReplaceNamespacedStatefulSetStatusRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { diff --git a/src/gen/AutoscalingV2Api.md b/src/gen/AutoscalingV2Api.md index be7a261888..c7c2c1e6cf 100644 --- a/src/gen/AutoscalingV2Api.md +++ b/src/gen/AutoscalingV2Api.md @@ -94,6 +94,7 @@ const request: AutoscalingV2ApiCreateNamespacedHorizontalPodAutoscalerRequest = ], selectPolicy: "selectPolicy_example", stabilizationWindowSeconds: 1, + tolerance: "tolerance_example", }, scaleUp: { policies: [ @@ -105,6 +106,7 @@ const request: AutoscalingV2ApiCreateNamespacedHorizontalPodAutoscalerRequest = ], selectPolicy: "selectPolicy_example", stabilizationWindowSeconds: 1, + tolerance: "tolerance_example", }, }, maxReplicas: 1, @@ -1159,6 +1161,7 @@ const request: AutoscalingV2ApiReplaceNamespacedHorizontalPodAutoscalerRequest = ], selectPolicy: "selectPolicy_example", stabilizationWindowSeconds: 1, + tolerance: "tolerance_example", }, scaleUp: { policies: [ @@ -1170,6 +1173,7 @@ const request: AutoscalingV2ApiReplaceNamespacedHorizontalPodAutoscalerRequest = ], selectPolicy: "selectPolicy_example", stabilizationWindowSeconds: 1, + tolerance: "tolerance_example", }, }, maxReplicas: 1, @@ -1528,6 +1532,7 @@ const request: AutoscalingV2ApiReplaceNamespacedHorizontalPodAutoscalerStatusReq ], selectPolicy: "selectPolicy_example", stabilizationWindowSeconds: 1, + tolerance: "tolerance_example", }, scaleUp: { policies: [ @@ -1539,6 +1544,7 @@ const request: AutoscalingV2ApiReplaceNamespacedHorizontalPodAutoscalerStatusReq ], selectPolicy: "selectPolicy_example", stabilizationWindowSeconds: 1, + tolerance: "tolerance_example", }, }, maxReplicas: 1, diff --git a/src/gen/BatchV1Api.md b/src/gen/BatchV1Api.md index 0bbe133635..2003ec1911 100644 --- a/src/gen/BatchV1Api.md +++ b/src/gen/BatchV1Api.md @@ -492,6 +492,12 @@ const request: BatchV1ApiCreateNamespacedCronJobRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -573,6 +579,7 @@ const request: BatchV1ApiCreateNamespacedCronJobRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -671,6 +678,17 @@ const request: BatchV1ApiCreateNamespacedCronJobRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -804,6 +822,12 @@ const request: BatchV1ApiCreateNamespacedCronJobRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -885,6 +909,7 @@ const request: BatchV1ApiCreateNamespacedCronJobRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -983,6 +1008,17 @@ const request: BatchV1ApiCreateNamespacedCronJobRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -1092,6 +1128,7 @@ const request: BatchV1ApiCreateNamespacedCronJobRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -1119,6 +1156,12 @@ const request: BatchV1ApiCreateNamespacedCronJobRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -1200,6 +1243,7 @@ const request: BatchV1ApiCreateNamespacedCronJobRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -1298,6 +1342,17 @@ const request: BatchV1ApiCreateNamespacedCronJobRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -1832,6 +1887,14 @@ const request: BatchV1ApiCreateNamespacedCronJobRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -2411,6 +2474,12 @@ const request: BatchV1ApiCreateNamespacedJobRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -2492,6 +2561,7 @@ const request: BatchV1ApiCreateNamespacedJobRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -2590,6 +2660,17 @@ const request: BatchV1ApiCreateNamespacedJobRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -2723,6 +2804,12 @@ const request: BatchV1ApiCreateNamespacedJobRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -2804,6 +2891,7 @@ const request: BatchV1ApiCreateNamespacedJobRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -2902,6 +2990,17 @@ const request: BatchV1ApiCreateNamespacedJobRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -3011,6 +3110,7 @@ const request: BatchV1ApiCreateNamespacedJobRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -3038,6 +3138,12 @@ const request: BatchV1ApiCreateNamespacedJobRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -3119,6 +3225,7 @@ const request: BatchV1ApiCreateNamespacedJobRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -3217,6 +3324,17 @@ const request: BatchV1ApiCreateNamespacedJobRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -3751,6 +3869,14 @@ const request: BatchV1ApiCreateNamespacedJobRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -5730,6 +5856,12 @@ const request: BatchV1ApiReplaceNamespacedCronJobRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -5811,6 +5943,7 @@ const request: BatchV1ApiReplaceNamespacedCronJobRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -5909,6 +6042,17 @@ const request: BatchV1ApiReplaceNamespacedCronJobRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -6042,6 +6186,12 @@ const request: BatchV1ApiReplaceNamespacedCronJobRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -6123,6 +6273,7 @@ const request: BatchV1ApiReplaceNamespacedCronJobRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -6221,6 +6372,17 @@ const request: BatchV1ApiReplaceNamespacedCronJobRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -6330,6 +6492,7 @@ const request: BatchV1ApiReplaceNamespacedCronJobRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -6357,6 +6520,12 @@ const request: BatchV1ApiReplaceNamespacedCronJobRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -6438,6 +6607,7 @@ const request: BatchV1ApiReplaceNamespacedCronJobRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -6536,6 +6706,17 @@ const request: BatchV1ApiReplaceNamespacedCronJobRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -7070,6 +7251,14 @@ const request: BatchV1ApiReplaceNamespacedCronJobRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -7697,6 +7886,12 @@ const request: BatchV1ApiReplaceNamespacedCronJobStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -7778,6 +7973,7 @@ const request: BatchV1ApiReplaceNamespacedCronJobStatusRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -7876,6 +8072,17 @@ const request: BatchV1ApiReplaceNamespacedCronJobStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -8009,6 +8216,12 @@ const request: BatchV1ApiReplaceNamespacedCronJobStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -8090,6 +8303,7 @@ const request: BatchV1ApiReplaceNamespacedCronJobStatusRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -8188,6 +8402,17 @@ const request: BatchV1ApiReplaceNamespacedCronJobStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -8297,6 +8522,7 @@ const request: BatchV1ApiReplaceNamespacedCronJobStatusRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -8324,6 +8550,12 @@ const request: BatchV1ApiReplaceNamespacedCronJobStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -8405,6 +8637,7 @@ const request: BatchV1ApiReplaceNamespacedCronJobStatusRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -8503,6 +8736,17 @@ const request: BatchV1ApiReplaceNamespacedCronJobStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -9037,6 +9281,14 @@ const request: BatchV1ApiReplaceNamespacedCronJobStatusRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -9618,6 +9870,12 @@ const request: BatchV1ApiReplaceNamespacedJobRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -9699,6 +9957,7 @@ const request: BatchV1ApiReplaceNamespacedJobRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -9797,6 +10056,17 @@ const request: BatchV1ApiReplaceNamespacedJobRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -9930,6 +10200,12 @@ const request: BatchV1ApiReplaceNamespacedJobRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -10011,6 +10287,7 @@ const request: BatchV1ApiReplaceNamespacedJobRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -10109,6 +10386,17 @@ const request: BatchV1ApiReplaceNamespacedJobRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -10218,6 +10506,7 @@ const request: BatchV1ApiReplaceNamespacedJobRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -10245,6 +10534,12 @@ const request: BatchV1ApiReplaceNamespacedJobRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -10326,6 +10621,7 @@ const request: BatchV1ApiReplaceNamespacedJobRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -10424,6 +10720,17 @@ const request: BatchV1ApiReplaceNamespacedJobRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -10958,6 +11265,14 @@ const request: BatchV1ApiReplaceNamespacedJobRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -11546,6 +11861,12 @@ const request: BatchV1ApiReplaceNamespacedJobStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -11627,6 +11948,7 @@ const request: BatchV1ApiReplaceNamespacedJobStatusRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -11725,6 +12047,17 @@ const request: BatchV1ApiReplaceNamespacedJobStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -11858,6 +12191,12 @@ const request: BatchV1ApiReplaceNamespacedJobStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -11939,6 +12278,7 @@ const request: BatchV1ApiReplaceNamespacedJobStatusRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -12037,6 +12377,17 @@ const request: BatchV1ApiReplaceNamespacedJobStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -12146,6 +12497,7 @@ const request: BatchV1ApiReplaceNamespacedJobStatusRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -12173,6 +12525,12 @@ const request: BatchV1ApiReplaceNamespacedJobStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -12254,6 +12612,7 @@ const request: BatchV1ApiReplaceNamespacedJobStatusRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -12352,6 +12711,17 @@ const request: BatchV1ApiReplaceNamespacedJobStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -12886,6 +13256,14 @@ const request: BatchV1ApiReplaceNamespacedJobStatusRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { diff --git a/src/gen/CertificatesV1alpha1Api.md b/src/gen/CertificatesV1alpha1Api.md index 359cf306c8..422a2847ba 100644 --- a/src/gen/CertificatesV1alpha1Api.md +++ b/src/gen/CertificatesV1alpha1Api.md @@ -5,13 +5,24 @@ All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- [**createClusterTrustBundle**](CertificatesV1alpha1Api.md#createClusterTrustBundle) | **POST** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles | +[**createNamespacedPodCertificateRequest**](CertificatesV1alpha1Api.md#createNamespacedPodCertificateRequest) | **POST** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests | [**deleteClusterTrustBundle**](CertificatesV1alpha1Api.md#deleteClusterTrustBundle) | **DELETE** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | [**deleteCollectionClusterTrustBundle**](CertificatesV1alpha1Api.md#deleteCollectionClusterTrustBundle) | **DELETE** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles | +[**deleteCollectionNamespacedPodCertificateRequest**](CertificatesV1alpha1Api.md#deleteCollectionNamespacedPodCertificateRequest) | **DELETE** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests | +[**deleteNamespacedPodCertificateRequest**](CertificatesV1alpha1Api.md#deleteNamespacedPodCertificateRequest) | **DELETE** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name} | [**getAPIResources**](CertificatesV1alpha1Api.md#getAPIResources) | **GET** /apis/certificates.k8s.io/v1alpha1/ | [**listClusterTrustBundle**](CertificatesV1alpha1Api.md#listClusterTrustBundle) | **GET** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles | +[**listNamespacedPodCertificateRequest**](CertificatesV1alpha1Api.md#listNamespacedPodCertificateRequest) | **GET** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests | +[**listPodCertificateRequestForAllNamespaces**](CertificatesV1alpha1Api.md#listPodCertificateRequestForAllNamespaces) | **GET** /apis/certificates.k8s.io/v1alpha1/podcertificaterequests | [**patchClusterTrustBundle**](CertificatesV1alpha1Api.md#patchClusterTrustBundle) | **PATCH** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | +[**patchNamespacedPodCertificateRequest**](CertificatesV1alpha1Api.md#patchNamespacedPodCertificateRequest) | **PATCH** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name} | +[**patchNamespacedPodCertificateRequestStatus**](CertificatesV1alpha1Api.md#patchNamespacedPodCertificateRequestStatus) | **PATCH** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}/status | [**readClusterTrustBundle**](CertificatesV1alpha1Api.md#readClusterTrustBundle) | **GET** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | +[**readNamespacedPodCertificateRequest**](CertificatesV1alpha1Api.md#readNamespacedPodCertificateRequest) | **GET** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name} | +[**readNamespacedPodCertificateRequestStatus**](CertificatesV1alpha1Api.md#readNamespacedPodCertificateRequestStatus) | **GET** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}/status | [**replaceClusterTrustBundle**](CertificatesV1alpha1Api.md#replaceClusterTrustBundle) | **PUT** /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name} | +[**replaceNamespacedPodCertificateRequest**](CertificatesV1alpha1Api.md#replaceNamespacedPodCertificateRequest) | **PUT** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name} | +[**replaceNamespacedPodCertificateRequestStatus**](CertificatesV1alpha1Api.md#replaceNamespacedPodCertificateRequestStatus) | **PUT** /apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}/status | # **createClusterTrustBundle** @@ -121,6 +132,150 @@ Name | Type | Description | Notes - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **createNamespacedPodCertificateRequest** +> V1alpha1PodCertificateRequest createNamespacedPodCertificateRequest(body) + +create a PodCertificateRequest + +### Example + + +```typescript +import { createConfiguration, CertificatesV1alpha1Api } from ''; +import type { CertificatesV1alpha1ApiCreateNamespacedPodCertificateRequestRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CertificatesV1alpha1Api(configuration); + +const request: CertificatesV1alpha1ApiCreateNamespacedPodCertificateRequestRequest = { + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + maxExpirationSeconds: 1, + nodeName: "nodeName_example", + nodeUID: "nodeUID_example", + pkixPublicKey: 'YQ==', + podName: "podName_example", + podUID: "podUID_example", + proofOfPossession: 'YQ==', + serviceAccountName: "serviceAccountName_example", + serviceAccountUID: "serviceAccountUID_example", + signerName: "signerName_example", + }, + status: { + beginRefreshAt: new Date('1970-01-01T00:00:00.00Z'), + certificateChain: "certificateChain_example", + conditions: [ + { + lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), + message: "message_example", + observedGeneration: 1, + reason: "reason_example", + status: "status_example", + type: "type_example", + }, + ], + notAfter: new Date('1970-01-01T00:00:00.00Z'), + notBefore: new Date('1970-01-01T00:00:00.00Z'), + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.createNamespacedPodCertificateRequest(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1alpha1PodCertificateRequest**| | + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1alpha1PodCertificateRequest** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| @@ -283,7 +438,810 @@ const request: CertificatesV1alpha1ApiDeleteCollectionClusterTrustBundleRequest }, }; -const data = await apiInstance.deleteCollectionClusterTrustBundle(request); +const data = await apiInstance.deleteCollectionClusterTrustBundle(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + + +### Return type + +**V1Status** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteCollectionNamespacedPodCertificateRequest** +> V1Status deleteCollectionNamespacedPodCertificateRequest() + +delete collection of PodCertificateRequest + +### Example + + +```typescript +import { createConfiguration, CertificatesV1alpha1Api } from ''; +import type { CertificatesV1alpha1ApiDeleteCollectionNamespacedPodCertificateRequestRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CertificatesV1alpha1Api(configuration); + +const request: CertificatesV1alpha1ApiDeleteCollectionNamespacedPodCertificateRequestRequest = { + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteCollectionNamespacedPodCertificateRequest(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + + +### Return type + +**V1Status** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteNamespacedPodCertificateRequest** +> V1Status deleteNamespacedPodCertificateRequest() + +delete a PodCertificateRequest + +### Example + + +```typescript +import { createConfiguration, CertificatesV1alpha1Api } from ''; +import type { CertificatesV1alpha1ApiDeleteNamespacedPodCertificateRequestRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CertificatesV1alpha1Api(configuration); + +const request: CertificatesV1alpha1ApiDeleteNamespacedPodCertificateRequestRequest = { + // name of the PodCertificateRequest + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteNamespacedPodCertificateRequest(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **name** | [**string**] | name of the PodCertificateRequest | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + + +### Return type + +**V1Status** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **getAPIResources** +> V1APIResourceList getAPIResources() + +get available resources + +### Example + + +```typescript +import { createConfiguration, CertificatesV1alpha1Api } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CertificatesV1alpha1Api(configuration); + +const request = {}; + +const data = await apiInstance.getAPIResources(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters +This endpoint does not need any parameter. + + +### Return type + +**V1APIResourceList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listClusterTrustBundle** +> V1alpha1ClusterTrustBundleList listClusterTrustBundle() + +list or watch objects of kind ClusterTrustBundle + +### Example + + +```typescript +import { createConfiguration, CertificatesV1alpha1Api } from ''; +import type { CertificatesV1alpha1ApiListClusterTrustBundleRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CertificatesV1alpha1Api(configuration); + +const request: CertificatesV1alpha1ApiListClusterTrustBundleRequest = { + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listClusterTrustBundle(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1alpha1ClusterTrustBundleList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listNamespacedPodCertificateRequest** +> V1alpha1PodCertificateRequestList listNamespacedPodCertificateRequest() + +list or watch objects of kind PodCertificateRequest + +### Example + + +```typescript +import { createConfiguration, CertificatesV1alpha1Api } from ''; +import type { CertificatesV1alpha1ApiListNamespacedPodCertificateRequestRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CertificatesV1alpha1Api(configuration); + +const request: CertificatesV1alpha1ApiListNamespacedPodCertificateRequestRequest = { + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listNamespacedPodCertificateRequest(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1alpha1PodCertificateRequestList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listPodCertificateRequestForAllNamespaces** +> V1alpha1PodCertificateRequestList listPodCertificateRequestForAllNamespaces() + +list or watch objects of kind PodCertificateRequest + +### Example + + +```typescript +import { createConfiguration, CertificatesV1alpha1Api } from ''; +import type { CertificatesV1alpha1ApiListPodCertificateRequestForAllNamespacesRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CertificatesV1alpha1Api(configuration); + +const request: CertificatesV1alpha1ApiListPodCertificateRequestForAllNamespacesRequest = { + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listPodCertificateRequestForAllNamespaces(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1alpha1PodCertificateRequestList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **patchClusterTrustBundle** +> V1alpha1ClusterTrustBundle patchClusterTrustBundle(body) + +partially update the specified ClusterTrustBundle + +### Example + + +```typescript +import { createConfiguration, CertificatesV1alpha1Api } from ''; +import type { CertificatesV1alpha1ApiPatchClusterTrustBundleRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CertificatesV1alpha1Api(configuration); + +const request: CertificatesV1alpha1ApiPatchClusterTrustBundleRequest = { + // name of the ClusterTrustBundle + name: "name_example", + + body: {}, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", + // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + force: true, +}; + +const data = await apiInstance.patchClusterTrustBundle(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **any**| | + **name** | [**string**] | name of the ClusterTrustBundle | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined + + +### Return type + +**V1alpha1ClusterTrustBundle** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **patchNamespacedPodCertificateRequest** +> V1alpha1PodCertificateRequest patchNamespacedPodCertificateRequest(body) + +partially update the specified PodCertificateRequest + +### Example + + +```typescript +import { createConfiguration, CertificatesV1alpha1Api } from ''; +import type { CertificatesV1alpha1ApiPatchNamespacedPodCertificateRequestRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CertificatesV1alpha1Api(configuration); + +const request: CertificatesV1alpha1ApiPatchNamespacedPodCertificateRequestRequest = { + // name of the PodCertificateRequest + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: {}, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", + // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + force: true, +}; + +const data = await apiInstance.patchNamespacedPodCertificateRequest(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **any**| | + **name** | [**string**] | name of the PodCertificateRequest | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined + + +### Return type + +**V1alpha1PodCertificateRequest** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **patchNamespacedPodCertificateRequestStatus** +> V1alpha1PodCertificateRequest patchNamespacedPodCertificateRequestStatus(body) + +partially update status of the specified PodCertificateRequest + +### Example + + +```typescript +import { createConfiguration, CertificatesV1alpha1Api } from ''; +import type { CertificatesV1alpha1ApiPatchNamespacedPodCertificateRequestStatusRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CertificatesV1alpha1Api(configuration); + +const request: CertificatesV1alpha1ApiPatchNamespacedPodCertificateRequestStatusRequest = { + // name of the PodCertificateRequest + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: {}, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", + // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + force: true, +}; + +const data = await apiInstance.patchNamespacedPodCertificateRequestStatus(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **any**| | + **name** | [**string**] | name of the PodCertificateRequest | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined + + +### Return type + +**V1alpha1PodCertificateRequest** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **readClusterTrustBundle** +> V1alpha1ClusterTrustBundle readClusterTrustBundle() + +read the specified ClusterTrustBundle + +### Example + + +```typescript +import { createConfiguration, CertificatesV1alpha1Api } from ''; +import type { CertificatesV1alpha1ApiReadClusterTrustBundleRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CertificatesV1alpha1Api(configuration); + +const request: CertificatesV1alpha1ApiReadClusterTrustBundleRequest = { + // name of the ClusterTrustBundle + name: "name_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", +}; + +const data = await apiInstance.readClusterTrustBundle(request); console.log('API called successfully. Returned data:', data); ``` @@ -292,26 +1250,13 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **V1DeleteOptions**| | + **name** | [**string**] | name of the ClusterTrustBundle | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined - **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined - **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined - **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined - **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined - **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined - **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined - **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined - **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined ### Return type -**V1Status** +**V1alpha1ClusterTrustBundle** ### Authorization @@ -331,34 +1276,47 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **getAPIResources** -> V1APIResourceList getAPIResources() +# **readNamespacedPodCertificateRequest** +> V1alpha1PodCertificateRequest readNamespacedPodCertificateRequest() -get available resources +read the specified PodCertificateRequest ### Example ```typescript import { createConfiguration, CertificatesV1alpha1Api } from ''; +import type { CertificatesV1alpha1ApiReadNamespacedPodCertificateRequestRequest } from ''; const configuration = createConfiguration(); const apiInstance = new CertificatesV1alpha1Api(configuration); -const request = {}; +const request: CertificatesV1alpha1ApiReadNamespacedPodCertificateRequestRequest = { + // name of the PodCertificateRequest + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", +}; -const data = await apiInstance.getAPIResources(request); +const data = await apiInstance.readNamespacedPodCertificateRequest(request); console.log('API called successfully. Returned data:', data); ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | [**string**] | name of the PodCertificateRequest | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined ### Return type -**V1APIResourceList** +**V1alpha1PodCertificateRequest** ### Authorization @@ -378,47 +1336,31 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **listClusterTrustBundle** -> V1alpha1ClusterTrustBundleList listClusterTrustBundle() +# **readNamespacedPodCertificateRequestStatus** +> V1alpha1PodCertificateRequest readNamespacedPodCertificateRequestStatus() -list or watch objects of kind ClusterTrustBundle +read status of the specified PodCertificateRequest ### Example ```typescript import { createConfiguration, CertificatesV1alpha1Api } from ''; -import type { CertificatesV1alpha1ApiListClusterTrustBundleRequest } from ''; +import type { CertificatesV1alpha1ApiReadNamespacedPodCertificateRequestStatusRequest } from ''; const configuration = createConfiguration(); const apiInstance = new CertificatesV1alpha1Api(configuration); -const request: CertificatesV1alpha1ApiListClusterTrustBundleRequest = { +const request: CertificatesV1alpha1ApiReadNamespacedPodCertificateRequestStatusRequest = { + // name of the PodCertificateRequest + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", - // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) - allowWatchBookmarks: true, - // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - _continue: "continue_example", - // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - fieldSelector: "fieldSelector_example", - // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - labelSelector: "labelSelector_example", - // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - limit: 1, - // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersion: "resourceVersion_example", - // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersionMatch: "resourceVersionMatch_example", - // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - sendInitialEvents: true, - // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - timeoutSeconds: 1, - // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - watch: true, }; -const data = await apiInstance.listClusterTrustBundle(request); +const data = await apiInstance.readNamespacedPodCertificateRequestStatus(request); console.log('API called successfully. Returned data:', data); ``` @@ -427,22 +1369,14 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **name** | [**string**] | name of the PodCertificateRequest | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined - **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined - **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined - **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined - **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined - **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined - **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined - **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined ### Return type -**V1alpha1ClusterTrustBundleList** +**V1alpha1PodCertificateRequest** ### Authorization @@ -451,7 +1385,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details @@ -462,39 +1396,86 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **patchClusterTrustBundle** -> V1alpha1ClusterTrustBundle patchClusterTrustBundle(body) +# **replaceClusterTrustBundle** +> V1alpha1ClusterTrustBundle replaceClusterTrustBundle(body) -partially update the specified ClusterTrustBundle +replace the specified ClusterTrustBundle ### Example ```typescript import { createConfiguration, CertificatesV1alpha1Api } from ''; -import type { CertificatesV1alpha1ApiPatchClusterTrustBundleRequest } from ''; +import type { CertificatesV1alpha1ApiReplaceClusterTrustBundleRequest } from ''; const configuration = createConfiguration(); const apiInstance = new CertificatesV1alpha1Api(configuration); -const request: CertificatesV1alpha1ApiPatchClusterTrustBundleRequest = { +const request: CertificatesV1alpha1ApiReplaceClusterTrustBundleRequest = { // name of the ClusterTrustBundle name: "name_example", - body: {}, + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + signerName: "signerName_example", + trustBundle: "trustBundle_example", + }, + }, // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) fieldManager: "fieldManager_example", // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) fieldValidation: "fieldValidation_example", - // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - force: true, }; -const data = await apiInstance.patchClusterTrustBundle(request); +const data = await apiInstance.replaceClusterTrustBundle(request); console.log('API called successfully. Returned data:', data); ``` @@ -503,13 +1484,12 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **any**| | + **body** | **V1alpha1ClusterTrustBundle**| | **name** | [**string**] | name of the ClusterTrustBundle | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined - **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined ### Return type @@ -522,7 +1502,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor @@ -535,29 +1515,112 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **readClusterTrustBundle** -> V1alpha1ClusterTrustBundle readClusterTrustBundle() +# **replaceNamespacedPodCertificateRequest** +> V1alpha1PodCertificateRequest replaceNamespacedPodCertificateRequest(body) -read the specified ClusterTrustBundle +replace the specified PodCertificateRequest ### Example ```typescript import { createConfiguration, CertificatesV1alpha1Api } from ''; -import type { CertificatesV1alpha1ApiReadClusterTrustBundleRequest } from ''; +import type { CertificatesV1alpha1ApiReplaceNamespacedPodCertificateRequestRequest } from ''; const configuration = createConfiguration(); const apiInstance = new CertificatesV1alpha1Api(configuration); -const request: CertificatesV1alpha1ApiReadClusterTrustBundleRequest = { - // name of the ClusterTrustBundle +const request: CertificatesV1alpha1ApiReplaceNamespacedPodCertificateRequestRequest = { + // name of the PodCertificateRequest name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + maxExpirationSeconds: 1, + nodeName: "nodeName_example", + nodeUID: "nodeUID_example", + pkixPublicKey: 'YQ==', + podName: "podName_example", + podUID: "podUID_example", + proofOfPossession: 'YQ==', + serviceAccountName: "serviceAccountName_example", + serviceAccountUID: "serviceAccountUID_example", + signerName: "signerName_example", + }, + status: { + beginRefreshAt: new Date('1970-01-01T00:00:00.00Z'), + certificateChain: "certificateChain_example", + conditions: [ + { + lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), + message: "message_example", + observedGeneration: 1, + reason: "reason_example", + status: "status_example", + type: "type_example", + }, + ], + notAfter: new Date('1970-01-01T00:00:00.00Z'), + notBefore: new Date('1970-01-01T00:00:00.00Z'), + }, + }, // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", }; -const data = await apiInstance.readClusterTrustBundle(request); +const data = await apiInstance.replaceNamespacedPodCertificateRequest(request); console.log('API called successfully. Returned data:', data); ``` @@ -566,13 +1629,18 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | [**string**] | name of the ClusterTrustBundle | defaults to undefined + **body** | **V1alpha1PodCertificateRequest**| | + **name** | [**string**] | name of the PodCertificateRequest | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined ### Return type -**V1alpha1ClusterTrustBundle** +**V1alpha1PodCertificateRequest** ### Authorization @@ -588,28 +1656,31 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**201** | Created | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **replaceClusterTrustBundle** -> V1alpha1ClusterTrustBundle replaceClusterTrustBundle(body) +# **replaceNamespacedPodCertificateRequestStatus** +> V1alpha1PodCertificateRequest replaceNamespacedPodCertificateRequestStatus(body) -replace the specified ClusterTrustBundle +replace status of the specified PodCertificateRequest ### Example ```typescript import { createConfiguration, CertificatesV1alpha1Api } from ''; -import type { CertificatesV1alpha1ApiReplaceClusterTrustBundleRequest } from ''; +import type { CertificatesV1alpha1ApiReplaceNamespacedPodCertificateRequestStatusRequest } from ''; const configuration = createConfiguration(); const apiInstance = new CertificatesV1alpha1Api(configuration); -const request: CertificatesV1alpha1ApiReplaceClusterTrustBundleRequest = { - // name of the ClusterTrustBundle +const request: CertificatesV1alpha1ApiReplaceNamespacedPodCertificateRequestStatusRequest = { + // name of the PodCertificateRequest name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", body: { apiVersion: "apiVersion_example", @@ -657,8 +1728,32 @@ const request: CertificatesV1alpha1ApiReplaceClusterTrustBundleRequest = { uid: "uid_example", }, spec: { + maxExpirationSeconds: 1, + nodeName: "nodeName_example", + nodeUID: "nodeUID_example", + pkixPublicKey: 'YQ==', + podName: "podName_example", + podUID: "podUID_example", + proofOfPossession: 'YQ==', + serviceAccountName: "serviceAccountName_example", + serviceAccountUID: "serviceAccountUID_example", signerName: "signerName_example", - trustBundle: "trustBundle_example", + }, + status: { + beginRefreshAt: new Date('1970-01-01T00:00:00.00Z'), + certificateChain: "certificateChain_example", + conditions: [ + { + lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), + message: "message_example", + observedGeneration: 1, + reason: "reason_example", + status: "status_example", + type: "type_example", + }, + ], + notAfter: new Date('1970-01-01T00:00:00.00Z'), + notBefore: new Date('1970-01-01T00:00:00.00Z'), }, }, // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) @@ -671,7 +1766,7 @@ const request: CertificatesV1alpha1ApiReplaceClusterTrustBundleRequest = { fieldValidation: "fieldValidation_example", }; -const data = await apiInstance.replaceClusterTrustBundle(request); +const data = await apiInstance.replaceNamespacedPodCertificateRequestStatus(request); console.log('API called successfully. Returned data:', data); ``` @@ -680,8 +1775,9 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **V1alpha1ClusterTrustBundle**| | - **name** | [**string**] | name of the ClusterTrustBundle | defaults to undefined + **body** | **V1alpha1PodCertificateRequest**| | + **name** | [**string**] | name of the PodCertificateRequest | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined @@ -690,7 +1786,7 @@ Name | Type | Description | Notes ### Return type -**V1alpha1ClusterTrustBundle** +**V1alpha1PodCertificateRequest** ### Authorization diff --git a/src/gen/CertificatesV1beta1Api.md b/src/gen/CertificatesV1beta1Api.md new file mode 100644 index 0000000000..2e5a2ab410 --- /dev/null +++ b/src/gen/CertificatesV1beta1Api.md @@ -0,0 +1,714 @@ +# .CertificatesV1beta1Api + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createClusterTrustBundle**](CertificatesV1beta1Api.md#createClusterTrustBundle) | **POST** /apis/certificates.k8s.io/v1beta1/clustertrustbundles | +[**deleteClusterTrustBundle**](CertificatesV1beta1Api.md#deleteClusterTrustBundle) | **DELETE** /apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name} | +[**deleteCollectionClusterTrustBundle**](CertificatesV1beta1Api.md#deleteCollectionClusterTrustBundle) | **DELETE** /apis/certificates.k8s.io/v1beta1/clustertrustbundles | +[**getAPIResources**](CertificatesV1beta1Api.md#getAPIResources) | **GET** /apis/certificates.k8s.io/v1beta1/ | +[**listClusterTrustBundle**](CertificatesV1beta1Api.md#listClusterTrustBundle) | **GET** /apis/certificates.k8s.io/v1beta1/clustertrustbundles | +[**patchClusterTrustBundle**](CertificatesV1beta1Api.md#patchClusterTrustBundle) | **PATCH** /apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name} | +[**readClusterTrustBundle**](CertificatesV1beta1Api.md#readClusterTrustBundle) | **GET** /apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name} | +[**replaceClusterTrustBundle**](CertificatesV1beta1Api.md#replaceClusterTrustBundle) | **PUT** /apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name} | + + +# **createClusterTrustBundle** +> V1beta1ClusterTrustBundle createClusterTrustBundle(body) + +create a ClusterTrustBundle + +### Example + + +```typescript +import { createConfiguration, CertificatesV1beta1Api } from ''; +import type { CertificatesV1beta1ApiCreateClusterTrustBundleRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CertificatesV1beta1Api(configuration); + +const request: CertificatesV1beta1ApiCreateClusterTrustBundleRequest = { + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + signerName: "signerName_example", + trustBundle: "trustBundle_example", + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.createClusterTrustBundle(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1beta1ClusterTrustBundle**| | + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1beta1ClusterTrustBundle** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteClusterTrustBundle** +> V1Status deleteClusterTrustBundle() + +delete a ClusterTrustBundle + +### Example + + +```typescript +import { createConfiguration, CertificatesV1beta1Api } from ''; +import type { CertificatesV1beta1ApiDeleteClusterTrustBundleRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CertificatesV1beta1Api(configuration); + +const request: CertificatesV1beta1ApiDeleteClusterTrustBundleRequest = { + // name of the ClusterTrustBundle + name: "name_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteClusterTrustBundle(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **name** | [**string**] | name of the ClusterTrustBundle | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + + +### Return type + +**V1Status** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteCollectionClusterTrustBundle** +> V1Status deleteCollectionClusterTrustBundle() + +delete collection of ClusterTrustBundle + +### Example + + +```typescript +import { createConfiguration, CertificatesV1beta1Api } from ''; +import type { CertificatesV1beta1ApiDeleteCollectionClusterTrustBundleRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CertificatesV1beta1Api(configuration); + +const request: CertificatesV1beta1ApiDeleteCollectionClusterTrustBundleRequest = { + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteCollectionClusterTrustBundle(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + + +### Return type + +**V1Status** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **getAPIResources** +> V1APIResourceList getAPIResources() + +get available resources + +### Example + + +```typescript +import { createConfiguration, CertificatesV1beta1Api } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CertificatesV1beta1Api(configuration); + +const request = {}; + +const data = await apiInstance.getAPIResources(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters +This endpoint does not need any parameter. + + +### Return type + +**V1APIResourceList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listClusterTrustBundle** +> V1beta1ClusterTrustBundleList listClusterTrustBundle() + +list or watch objects of kind ClusterTrustBundle + +### Example + + +```typescript +import { createConfiguration, CertificatesV1beta1Api } from ''; +import type { CertificatesV1beta1ApiListClusterTrustBundleRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CertificatesV1beta1Api(configuration); + +const request: CertificatesV1beta1ApiListClusterTrustBundleRequest = { + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listClusterTrustBundle(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1beta1ClusterTrustBundleList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **patchClusterTrustBundle** +> V1beta1ClusterTrustBundle patchClusterTrustBundle(body) + +partially update the specified ClusterTrustBundle + +### Example + + +```typescript +import { createConfiguration, CertificatesV1beta1Api } from ''; +import type { CertificatesV1beta1ApiPatchClusterTrustBundleRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CertificatesV1beta1Api(configuration); + +const request: CertificatesV1beta1ApiPatchClusterTrustBundleRequest = { + // name of the ClusterTrustBundle + name: "name_example", + + body: {}, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", + // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + force: true, +}; + +const data = await apiInstance.patchClusterTrustBundle(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **any**| | + **name** | [**string**] | name of the ClusterTrustBundle | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined + + +### Return type + +**V1beta1ClusterTrustBundle** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **readClusterTrustBundle** +> V1beta1ClusterTrustBundle readClusterTrustBundle() + +read the specified ClusterTrustBundle + +### Example + + +```typescript +import { createConfiguration, CertificatesV1beta1Api } from ''; +import type { CertificatesV1beta1ApiReadClusterTrustBundleRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CertificatesV1beta1Api(configuration); + +const request: CertificatesV1beta1ApiReadClusterTrustBundleRequest = { + // name of the ClusterTrustBundle + name: "name_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", +}; + +const data = await apiInstance.readClusterTrustBundle(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | [**string**] | name of the ClusterTrustBundle | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + + +### Return type + +**V1beta1ClusterTrustBundle** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **replaceClusterTrustBundle** +> V1beta1ClusterTrustBundle replaceClusterTrustBundle(body) + +replace the specified ClusterTrustBundle + +### Example + + +```typescript +import { createConfiguration, CertificatesV1beta1Api } from ''; +import type { CertificatesV1beta1ApiReplaceClusterTrustBundleRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CertificatesV1beta1Api(configuration); + +const request: CertificatesV1beta1ApiReplaceClusterTrustBundleRequest = { + // name of the ClusterTrustBundle + name: "name_example", + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + signerName: "signerName_example", + trustBundle: "trustBundle_example", + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.replaceClusterTrustBundle(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1beta1ClusterTrustBundle**| | + **name** | [**string**] | name of the ClusterTrustBundle | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1beta1ClusterTrustBundle** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + + diff --git a/src/gen/CoordinationV1beta1Api.md b/src/gen/CoordinationV1beta1Api.md new file mode 100644 index 0000000000..4451a068b5 --- /dev/null +++ b/src/gen/CoordinationV1beta1Api.md @@ -0,0 +1,828 @@ +# .CoordinationV1beta1Api + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createNamespacedLeaseCandidate**](CoordinationV1beta1Api.md#createNamespacedLeaseCandidate) | **POST** /apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates | +[**deleteCollectionNamespacedLeaseCandidate**](CoordinationV1beta1Api.md#deleteCollectionNamespacedLeaseCandidate) | **DELETE** /apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates | +[**deleteNamespacedLeaseCandidate**](CoordinationV1beta1Api.md#deleteNamespacedLeaseCandidate) | **DELETE** /apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates/{name} | +[**getAPIResources**](CoordinationV1beta1Api.md#getAPIResources) | **GET** /apis/coordination.k8s.io/v1beta1/ | +[**listLeaseCandidateForAllNamespaces**](CoordinationV1beta1Api.md#listLeaseCandidateForAllNamespaces) | **GET** /apis/coordination.k8s.io/v1beta1/leasecandidates | +[**listNamespacedLeaseCandidate**](CoordinationV1beta1Api.md#listNamespacedLeaseCandidate) | **GET** /apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates | +[**patchNamespacedLeaseCandidate**](CoordinationV1beta1Api.md#patchNamespacedLeaseCandidate) | **PATCH** /apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates/{name} | +[**readNamespacedLeaseCandidate**](CoordinationV1beta1Api.md#readNamespacedLeaseCandidate) | **GET** /apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates/{name} | +[**replaceNamespacedLeaseCandidate**](CoordinationV1beta1Api.md#replaceNamespacedLeaseCandidate) | **PUT** /apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates/{name} | + + +# **createNamespacedLeaseCandidate** +> V1beta1LeaseCandidate createNamespacedLeaseCandidate(body) + +create a LeaseCandidate + +### Example + + +```typescript +import { createConfiguration, CoordinationV1beta1Api } from ''; +import type { CoordinationV1beta1ApiCreateNamespacedLeaseCandidateRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CoordinationV1beta1Api(configuration); + +const request: CoordinationV1beta1ApiCreateNamespacedLeaseCandidateRequest = { + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + binaryVersion: "binaryVersion_example", + emulationVersion: "emulationVersion_example", + leaseName: "leaseName_example", + pingTime: "pingTime_example", + renewTime: "renewTime_example", + strategy: "strategy_example", + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.createNamespacedLeaseCandidate(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1beta1LeaseCandidate**| | + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1beta1LeaseCandidate** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteCollectionNamespacedLeaseCandidate** +> V1Status deleteCollectionNamespacedLeaseCandidate() + +delete collection of LeaseCandidate + +### Example + + +```typescript +import { createConfiguration, CoordinationV1beta1Api } from ''; +import type { CoordinationV1beta1ApiDeleteCollectionNamespacedLeaseCandidateRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CoordinationV1beta1Api(configuration); + +const request: CoordinationV1beta1ApiDeleteCollectionNamespacedLeaseCandidateRequest = { + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteCollectionNamespacedLeaseCandidate(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + + +### Return type + +**V1Status** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteNamespacedLeaseCandidate** +> V1Status deleteNamespacedLeaseCandidate() + +delete a LeaseCandidate + +### Example + + +```typescript +import { createConfiguration, CoordinationV1beta1Api } from ''; +import type { CoordinationV1beta1ApiDeleteNamespacedLeaseCandidateRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CoordinationV1beta1Api(configuration); + +const request: CoordinationV1beta1ApiDeleteNamespacedLeaseCandidateRequest = { + // name of the LeaseCandidate + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteNamespacedLeaseCandidate(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **name** | [**string**] | name of the LeaseCandidate | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + + +### Return type + +**V1Status** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **getAPIResources** +> V1APIResourceList getAPIResources() + +get available resources + +### Example + + +```typescript +import { createConfiguration, CoordinationV1beta1Api } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CoordinationV1beta1Api(configuration); + +const request = {}; + +const data = await apiInstance.getAPIResources(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters +This endpoint does not need any parameter. + + +### Return type + +**V1APIResourceList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listLeaseCandidateForAllNamespaces** +> V1beta1LeaseCandidateList listLeaseCandidateForAllNamespaces() + +list or watch objects of kind LeaseCandidate + +### Example + + +```typescript +import { createConfiguration, CoordinationV1beta1Api } from ''; +import type { CoordinationV1beta1ApiListLeaseCandidateForAllNamespacesRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CoordinationV1beta1Api(configuration); + +const request: CoordinationV1beta1ApiListLeaseCandidateForAllNamespacesRequest = { + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listLeaseCandidateForAllNamespaces(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1beta1LeaseCandidateList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listNamespacedLeaseCandidate** +> V1beta1LeaseCandidateList listNamespacedLeaseCandidate() + +list or watch objects of kind LeaseCandidate + +### Example + + +```typescript +import { createConfiguration, CoordinationV1beta1Api } from ''; +import type { CoordinationV1beta1ApiListNamespacedLeaseCandidateRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CoordinationV1beta1Api(configuration); + +const request: CoordinationV1beta1ApiListNamespacedLeaseCandidateRequest = { + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listNamespacedLeaseCandidate(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1beta1LeaseCandidateList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **patchNamespacedLeaseCandidate** +> V1beta1LeaseCandidate patchNamespacedLeaseCandidate(body) + +partially update the specified LeaseCandidate + +### Example + + +```typescript +import { createConfiguration, CoordinationV1beta1Api } from ''; +import type { CoordinationV1beta1ApiPatchNamespacedLeaseCandidateRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CoordinationV1beta1Api(configuration); + +const request: CoordinationV1beta1ApiPatchNamespacedLeaseCandidateRequest = { + // name of the LeaseCandidate + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: {}, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", + // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + force: true, +}; + +const data = await apiInstance.patchNamespacedLeaseCandidate(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **any**| | + **name** | [**string**] | name of the LeaseCandidate | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined + + +### Return type + +**V1beta1LeaseCandidate** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **readNamespacedLeaseCandidate** +> V1beta1LeaseCandidate readNamespacedLeaseCandidate() + +read the specified LeaseCandidate + +### Example + + +```typescript +import { createConfiguration, CoordinationV1beta1Api } from ''; +import type { CoordinationV1beta1ApiReadNamespacedLeaseCandidateRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CoordinationV1beta1Api(configuration); + +const request: CoordinationV1beta1ApiReadNamespacedLeaseCandidateRequest = { + // name of the LeaseCandidate + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", +}; + +const data = await apiInstance.readNamespacedLeaseCandidate(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | [**string**] | name of the LeaseCandidate | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + + +### Return type + +**V1beta1LeaseCandidate** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **replaceNamespacedLeaseCandidate** +> V1beta1LeaseCandidate replaceNamespacedLeaseCandidate(body) + +replace the specified LeaseCandidate + +### Example + + +```typescript +import { createConfiguration, CoordinationV1beta1Api } from ''; +import type { CoordinationV1beta1ApiReplaceNamespacedLeaseCandidateRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new CoordinationV1beta1Api(configuration); + +const request: CoordinationV1beta1ApiReplaceNamespacedLeaseCandidateRequest = { + // name of the LeaseCandidate + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + binaryVersion: "binaryVersion_example", + emulationVersion: "emulationVersion_example", + leaseName: "leaseName_example", + pingTime: "pingTime_example", + renewTime: "renewTime_example", + strategy: "strategy_example", + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.replaceNamespacedLeaseCandidate(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1beta1LeaseCandidate**| | + **name** | [**string**] | name of the LeaseCandidate | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1beta1LeaseCandidate** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + + diff --git a/src/gen/CoreV1Api.md b/src/gen/CoreV1Api.md index 77f37d9f10..9f97db2967 100644 --- a/src/gen/CoreV1Api.md +++ b/src/gen/CoreV1Api.md @@ -4503,6 +4503,12 @@ const request: CoreV1ApiCreateNamespacedPodRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -4584,6 +4590,7 @@ const request: CoreV1ApiCreateNamespacedPodRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -4682,6 +4689,17 @@ const request: CoreV1ApiCreateNamespacedPodRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -4815,6 +4833,12 @@ const request: CoreV1ApiCreateNamespacedPodRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -4896,6 +4920,7 @@ const request: CoreV1ApiCreateNamespacedPodRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -4994,6 +5019,17 @@ const request: CoreV1ApiCreateNamespacedPodRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -5103,6 +5139,7 @@ const request: CoreV1ApiCreateNamespacedPodRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -5130,6 +5167,12 @@ const request: CoreV1ApiCreateNamespacedPodRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -5211,6 +5254,7 @@ const request: CoreV1ApiCreateNamespacedPodRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -5309,6 +5353,17 @@ const request: CoreV1ApiCreateNamespacedPodRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -5843,6 +5898,14 @@ const request: CoreV1ApiCreateNamespacedPodRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -5934,6 +5997,7 @@ const request: CoreV1ApiCreateNamespacedPodRequest = { lastProbeTime: new Date('1970-01-01T00:00:00.00Z'), lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), message: "message_example", + observedGeneration: 1, reason: "reason_example", status: "status_example", type: "type_example", @@ -6012,6 +6076,7 @@ const request: CoreV1ApiCreateNamespacedPodRequest = { reason: "reason_example", }, }, + stopSignal: "stopSignal_example", user: { linux: { gid: 1, @@ -6104,6 +6169,7 @@ const request: CoreV1ApiCreateNamespacedPodRequest = { reason: "reason_example", }, }, + stopSignal: "stopSignal_example", user: { linux: { gid: 1, @@ -6123,6 +6189,16 @@ const request: CoreV1ApiCreateNamespacedPodRequest = { ], }, ], + extendedResourceClaimStatus: { + requestMappings: [ + { + containerName: "containerName_example", + requestName: "requestName_example", + resourceName: "resourceName_example", + }, + ], + resourceClaimName: "resourceClaimName_example", + }, hostIP: "hostIP_example", hostIPs: [ { @@ -6202,6 +6278,7 @@ const request: CoreV1ApiCreateNamespacedPodRequest = { reason: "reason_example", }, }, + stopSignal: "stopSignal_example", user: { linux: { gid: 1, @@ -6223,6 +6300,7 @@ const request: CoreV1ApiCreateNamespacedPodRequest = { ], message: "message_example", nominatedNodeName: "nominatedNodeName_example", + observedGeneration: 1, phase: "phase_example", podIP: "podIP_example", podIPs: [ @@ -6918,6 +6996,12 @@ const request: CoreV1ApiCreateNamespacedPodTemplateRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -6999,6 +7083,7 @@ const request: CoreV1ApiCreateNamespacedPodTemplateRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -7097,6 +7182,17 @@ const request: CoreV1ApiCreateNamespacedPodTemplateRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -7230,6 +7326,12 @@ const request: CoreV1ApiCreateNamespacedPodTemplateRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -7311,6 +7413,7 @@ const request: CoreV1ApiCreateNamespacedPodTemplateRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -7409,6 +7512,17 @@ const request: CoreV1ApiCreateNamespacedPodTemplateRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -7518,6 +7632,7 @@ const request: CoreV1ApiCreateNamespacedPodTemplateRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -7545,6 +7660,12 @@ const request: CoreV1ApiCreateNamespacedPodTemplateRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -7626,6 +7747,7 @@ const request: CoreV1ApiCreateNamespacedPodTemplateRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -7724,6 +7846,17 @@ const request: CoreV1ApiCreateNamespacedPodTemplateRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -8258,6 +8391,14 @@ const request: CoreV1ApiCreateNamespacedPodTemplateRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -8765,6 +8906,12 @@ const request: CoreV1ApiCreateNamespacedReplicationControllerRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -8846,6 +8993,7 @@ const request: CoreV1ApiCreateNamespacedReplicationControllerRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -8944,6 +9092,17 @@ const request: CoreV1ApiCreateNamespacedReplicationControllerRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -9077,6 +9236,12 @@ const request: CoreV1ApiCreateNamespacedReplicationControllerRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -9158,6 +9323,7 @@ const request: CoreV1ApiCreateNamespacedReplicationControllerRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -9256,6 +9422,17 @@ const request: CoreV1ApiCreateNamespacedReplicationControllerRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -9365,6 +9542,7 @@ const request: CoreV1ApiCreateNamespacedReplicationControllerRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -9392,6 +9570,12 @@ const request: CoreV1ApiCreateNamespacedReplicationControllerRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -9473,6 +9657,7 @@ const request: CoreV1ApiCreateNamespacedReplicationControllerRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -9571,6 +9756,17 @@ const request: CoreV1ApiCreateNamespacedReplicationControllerRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -10105,6 +10301,14 @@ const request: CoreV1ApiCreateNamespacedReplicationControllerRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -11151,6 +11355,9 @@ const request: CoreV1ApiCreateNodeRequest = { machineID: "machineID_example", operatingSystem: "operatingSystem_example", osImage: "osImage_example", + swap: { + capacity: 1, + }, systemUUID: "systemUUID_example", }, phase: "phase_example", @@ -22322,6 +22529,12 @@ const request: CoreV1ApiReplaceNamespacedPodRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -22403,6 +22616,7 @@ const request: CoreV1ApiReplaceNamespacedPodRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -22501,6 +22715,17 @@ const request: CoreV1ApiReplaceNamespacedPodRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -22634,6 +22859,12 @@ const request: CoreV1ApiReplaceNamespacedPodRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -22715,6 +22946,7 @@ const request: CoreV1ApiReplaceNamespacedPodRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -22813,6 +23045,17 @@ const request: CoreV1ApiReplaceNamespacedPodRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -22922,6 +23165,7 @@ const request: CoreV1ApiReplaceNamespacedPodRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -22949,6 +23193,12 @@ const request: CoreV1ApiReplaceNamespacedPodRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -23030,6 +23280,7 @@ const request: CoreV1ApiReplaceNamespacedPodRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -23128,6 +23379,17 @@ const request: CoreV1ApiReplaceNamespacedPodRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -23662,6 +23924,14 @@ const request: CoreV1ApiReplaceNamespacedPodRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -23753,6 +24023,7 @@ const request: CoreV1ApiReplaceNamespacedPodRequest = { lastProbeTime: new Date('1970-01-01T00:00:00.00Z'), lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), message: "message_example", + observedGeneration: 1, reason: "reason_example", status: "status_example", type: "type_example", @@ -23831,6 +24102,7 @@ const request: CoreV1ApiReplaceNamespacedPodRequest = { reason: "reason_example", }, }, + stopSignal: "stopSignal_example", user: { linux: { gid: 1, @@ -23923,6 +24195,7 @@ const request: CoreV1ApiReplaceNamespacedPodRequest = { reason: "reason_example", }, }, + stopSignal: "stopSignal_example", user: { linux: { gid: 1, @@ -23942,6 +24215,16 @@ const request: CoreV1ApiReplaceNamespacedPodRequest = { ], }, ], + extendedResourceClaimStatus: { + requestMappings: [ + { + containerName: "containerName_example", + requestName: "requestName_example", + resourceName: "resourceName_example", + }, + ], + resourceClaimName: "resourceClaimName_example", + }, hostIP: "hostIP_example", hostIPs: [ { @@ -24021,6 +24304,7 @@ const request: CoreV1ApiReplaceNamespacedPodRequest = { reason: "reason_example", }, }, + stopSignal: "stopSignal_example", user: { linux: { gid: 1, @@ -24042,6 +24326,7 @@ const request: CoreV1ApiReplaceNamespacedPodRequest = { ], message: "message_example", nominatedNodeName: "nominatedNodeName_example", + observedGeneration: 1, phase: "phase_example", podIP: "podIP_example", podIPs: [ @@ -24434,6 +24719,12 @@ const request: CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -24515,6 +24806,7 @@ const request: CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -24613,6 +24905,17 @@ const request: CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -24746,6 +25049,12 @@ const request: CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -24827,6 +25136,7 @@ const request: CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -24925,6 +25235,17 @@ const request: CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -25034,6 +25355,7 @@ const request: CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -25061,6 +25383,12 @@ const request: CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -25142,6 +25470,7 @@ const request: CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -25240,6 +25569,17 @@ const request: CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -25774,6 +26114,14 @@ const request: CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -25865,6 +26213,7 @@ const request: CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest = { lastProbeTime: new Date('1970-01-01T00:00:00.00Z'), lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), message: "message_example", + observedGeneration: 1, reason: "reason_example", status: "status_example", type: "type_example", @@ -25943,6 +26292,7 @@ const request: CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest = { reason: "reason_example", }, }, + stopSignal: "stopSignal_example", user: { linux: { gid: 1, @@ -26035,6 +26385,7 @@ const request: CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest = { reason: "reason_example", }, }, + stopSignal: "stopSignal_example", user: { linux: { gid: 1, @@ -26054,6 +26405,16 @@ const request: CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest = { ], }, ], + extendedResourceClaimStatus: { + requestMappings: [ + { + containerName: "containerName_example", + requestName: "requestName_example", + resourceName: "resourceName_example", + }, + ], + resourceClaimName: "resourceClaimName_example", + }, hostIP: "hostIP_example", hostIPs: [ { @@ -26133,6 +26494,7 @@ const request: CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest = { reason: "reason_example", }, }, + stopSignal: "stopSignal_example", user: { linux: { gid: 1, @@ -26154,6 +26516,7 @@ const request: CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest = { ], message: "message_example", nominatedNodeName: "nominatedNodeName_example", + observedGeneration: 1, phase: "phase_example", podIP: "podIP_example", podIPs: [ @@ -26546,6 +26909,12 @@ const request: CoreV1ApiReplaceNamespacedPodResizeRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -26627,6 +26996,7 @@ const request: CoreV1ApiReplaceNamespacedPodResizeRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -26725,6 +27095,17 @@ const request: CoreV1ApiReplaceNamespacedPodResizeRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -26858,6 +27239,12 @@ const request: CoreV1ApiReplaceNamespacedPodResizeRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -26939,6 +27326,7 @@ const request: CoreV1ApiReplaceNamespacedPodResizeRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -27037,6 +27425,17 @@ const request: CoreV1ApiReplaceNamespacedPodResizeRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -27146,6 +27545,7 @@ const request: CoreV1ApiReplaceNamespacedPodResizeRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -27173,6 +27573,12 @@ const request: CoreV1ApiReplaceNamespacedPodResizeRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -27254,6 +27660,7 @@ const request: CoreV1ApiReplaceNamespacedPodResizeRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -27352,6 +27759,17 @@ const request: CoreV1ApiReplaceNamespacedPodResizeRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -27886,6 +28304,14 @@ const request: CoreV1ApiReplaceNamespacedPodResizeRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -27977,6 +28403,7 @@ const request: CoreV1ApiReplaceNamespacedPodResizeRequest = { lastProbeTime: new Date('1970-01-01T00:00:00.00Z'), lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), message: "message_example", + observedGeneration: 1, reason: "reason_example", status: "status_example", type: "type_example", @@ -28055,6 +28482,7 @@ const request: CoreV1ApiReplaceNamespacedPodResizeRequest = { reason: "reason_example", }, }, + stopSignal: "stopSignal_example", user: { linux: { gid: 1, @@ -28147,6 +28575,7 @@ const request: CoreV1ApiReplaceNamespacedPodResizeRequest = { reason: "reason_example", }, }, + stopSignal: "stopSignal_example", user: { linux: { gid: 1, @@ -28166,6 +28595,16 @@ const request: CoreV1ApiReplaceNamespacedPodResizeRequest = { ], }, ], + extendedResourceClaimStatus: { + requestMappings: [ + { + containerName: "containerName_example", + requestName: "requestName_example", + resourceName: "resourceName_example", + }, + ], + resourceClaimName: "resourceClaimName_example", + }, hostIP: "hostIP_example", hostIPs: [ { @@ -28245,6 +28684,7 @@ const request: CoreV1ApiReplaceNamespacedPodResizeRequest = { reason: "reason_example", }, }, + stopSignal: "stopSignal_example", user: { linux: { gid: 1, @@ -28266,6 +28706,7 @@ const request: CoreV1ApiReplaceNamespacedPodResizeRequest = { ], message: "message_example", nominatedNodeName: "nominatedNodeName_example", + observedGeneration: 1, phase: "phase_example", podIP: "podIP_example", podIPs: [ @@ -28658,6 +29099,12 @@ const request: CoreV1ApiReplaceNamespacedPodStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -28739,6 +29186,7 @@ const request: CoreV1ApiReplaceNamespacedPodStatusRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -28837,6 +29285,17 @@ const request: CoreV1ApiReplaceNamespacedPodStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -28970,6 +29429,12 @@ const request: CoreV1ApiReplaceNamespacedPodStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -29051,6 +29516,7 @@ const request: CoreV1ApiReplaceNamespacedPodStatusRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -29149,6 +29615,17 @@ const request: CoreV1ApiReplaceNamespacedPodStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -29258,6 +29735,7 @@ const request: CoreV1ApiReplaceNamespacedPodStatusRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -29285,6 +29763,12 @@ const request: CoreV1ApiReplaceNamespacedPodStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -29366,6 +29850,7 @@ const request: CoreV1ApiReplaceNamespacedPodStatusRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -29464,6 +29949,17 @@ const request: CoreV1ApiReplaceNamespacedPodStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -29998,6 +30494,14 @@ const request: CoreV1ApiReplaceNamespacedPodStatusRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -30089,6 +30593,7 @@ const request: CoreV1ApiReplaceNamespacedPodStatusRequest = { lastProbeTime: new Date('1970-01-01T00:00:00.00Z'), lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), message: "message_example", + observedGeneration: 1, reason: "reason_example", status: "status_example", type: "type_example", @@ -30167,6 +30672,7 @@ const request: CoreV1ApiReplaceNamespacedPodStatusRequest = { reason: "reason_example", }, }, + stopSignal: "stopSignal_example", user: { linux: { gid: 1, @@ -30259,6 +30765,7 @@ const request: CoreV1ApiReplaceNamespacedPodStatusRequest = { reason: "reason_example", }, }, + stopSignal: "stopSignal_example", user: { linux: { gid: 1, @@ -30278,6 +30785,16 @@ const request: CoreV1ApiReplaceNamespacedPodStatusRequest = { ], }, ], + extendedResourceClaimStatus: { + requestMappings: [ + { + containerName: "containerName_example", + requestName: "requestName_example", + resourceName: "resourceName_example", + }, + ], + resourceClaimName: "resourceClaimName_example", + }, hostIP: "hostIP_example", hostIPs: [ { @@ -30357,6 +30874,7 @@ const request: CoreV1ApiReplaceNamespacedPodStatusRequest = { reason: "reason_example", }, }, + stopSignal: "stopSignal_example", user: { linux: { gid: 1, @@ -30378,6 +30896,7 @@ const request: CoreV1ApiReplaceNamespacedPodStatusRequest = { ], message: "message_example", nominatedNodeName: "nominatedNodeName_example", + observedGeneration: 1, phase: "phase_example", podIP: "podIP_example", podIPs: [ @@ -30813,6 +31332,12 @@ const request: CoreV1ApiReplaceNamespacedPodTemplateRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -30894,6 +31419,7 @@ const request: CoreV1ApiReplaceNamespacedPodTemplateRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -30992,6 +31518,17 @@ const request: CoreV1ApiReplaceNamespacedPodTemplateRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -31125,6 +31662,12 @@ const request: CoreV1ApiReplaceNamespacedPodTemplateRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -31206,6 +31749,7 @@ const request: CoreV1ApiReplaceNamespacedPodTemplateRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -31304,6 +31848,17 @@ const request: CoreV1ApiReplaceNamespacedPodTemplateRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -31413,6 +31968,7 @@ const request: CoreV1ApiReplaceNamespacedPodTemplateRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -31440,6 +31996,12 @@ const request: CoreV1ApiReplaceNamespacedPodTemplateRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -31521,6 +32083,7 @@ const request: CoreV1ApiReplaceNamespacedPodTemplateRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -31619,6 +32182,17 @@ const request: CoreV1ApiReplaceNamespacedPodTemplateRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -32153,6 +32727,14 @@ const request: CoreV1ApiReplaceNamespacedPodTemplateRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -32662,6 +33244,12 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -32743,6 +33331,7 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -32841,6 +33430,17 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -32974,6 +33574,12 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -33055,6 +33661,7 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -33153,6 +33760,17 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -33262,6 +33880,7 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -33289,6 +33908,12 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -33370,6 +33995,7 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -33468,6 +34094,17 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -34002,6 +34639,14 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -34653,6 +35298,12 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -34734,6 +35385,7 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerStatusRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -34832,6 +35484,17 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -34965,6 +35628,12 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -35046,6 +35715,7 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerStatusRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -35144,6 +35814,17 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -35253,6 +35934,7 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerStatusRequest = { hostPID: true, hostUsers: true, hostname: "hostname_example", + hostnameOverride: "hostnameOverride_example", imagePullSecrets: [ { name: "name_example", @@ -35280,6 +35962,12 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerStatusRequest = { apiVersion: "apiVersion_example", fieldPath: "fieldPath_example", }, + fileKeyRef: { + key: "key_example", + optional: true, + path: "path_example", + volumeName: "volumeName_example", + }, resourceFieldRef: { containerName: "containerName_example", divisor: "divisor_example", @@ -35361,6 +36049,7 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerStatusRequest = { port: "port_example", }, }, + stopSignal: "stopSignal_example", }, livenessProbe: { exec: { @@ -35459,6 +36148,17 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerStatusRequest = { }, }, restartPolicy: "restartPolicy_example", + restartPolicyRules: [ + { + action: "action_example", + exitCodes: { + operator: "operator_example", + values: [ + 1, + ], + }, + }, + ], securityContext: { allowPrivilegeEscalation: true, appArmorProfile: { @@ -35993,6 +36693,14 @@ const request: CoreV1ApiReplaceNamespacedReplicationControllerStatusRequest = { }, ], }, + podCertificate: { + certificateChainPath: "certificateChainPath_example", + credentialBundlePath: "credentialBundlePath_example", + keyPath: "keyPath_example", + keyType: "keyType_example", + maxExpirationSeconds: 1, + signerName: "signerName_example", + }, secret: { items: [ { @@ -37250,6 +37958,9 @@ const request: CoreV1ApiReplaceNodeRequest = { machineID: "machineID_example", operatingSystem: "operatingSystem_example", osImage: "osImage_example", + swap: { + capacity: 1, + }, systemUUID: "systemUUID_example", }, phase: "phase_example", @@ -37492,6 +38203,9 @@ const request: CoreV1ApiReplaceNodeStatusRequest = { machineID: "machineID_example", operatingSystem: "operatingSystem_example", osImage: "osImage_example", + swap: { + capacity: 1, + }, systemUUID: "systemUUID_example", }, phase: "phase_example", diff --git a/src/gen/DiscoveryV1Api.md b/src/gen/DiscoveryV1Api.md index 3e1bccc61f..430db4b9f8 100644 --- a/src/gen/DiscoveryV1Api.md +++ b/src/gen/DiscoveryV1Api.md @@ -51,6 +51,11 @@ const request: DiscoveryV1ApiCreateNamespacedEndpointSliceRequest = { "key": "key_example", }, hints: { + forNodes: [ + { + name: "name_example", + }, + ], forZones: [ { name: "name_example", @@ -772,6 +777,11 @@ const request: DiscoveryV1ApiReplaceNamespacedEndpointSliceRequest = { "key": "key_example", }, hints: { + forNodes: [ + { + name: "name_example", + }, + ], forZones: [ { name: "name_example", diff --git a/src/gen/NetworkingV1Api.md b/src/gen/NetworkingV1Api.md index c7e4f7dd31..abcdc5d918 100644 --- a/src/gen/NetworkingV1Api.md +++ b/src/gen/NetworkingV1Api.md @@ -4,35 +4,173 @@ All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- +[**createIPAddress**](NetworkingV1Api.md#createIPAddress) | **POST** /apis/networking.k8s.io/v1/ipaddresses | [**createIngressClass**](NetworkingV1Api.md#createIngressClass) | **POST** /apis/networking.k8s.io/v1/ingressclasses | [**createNamespacedIngress**](NetworkingV1Api.md#createNamespacedIngress) | **POST** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses | [**createNamespacedNetworkPolicy**](NetworkingV1Api.md#createNamespacedNetworkPolicy) | **POST** /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies | +[**createServiceCIDR**](NetworkingV1Api.md#createServiceCIDR) | **POST** /apis/networking.k8s.io/v1/servicecidrs | +[**deleteCollectionIPAddress**](NetworkingV1Api.md#deleteCollectionIPAddress) | **DELETE** /apis/networking.k8s.io/v1/ipaddresses | [**deleteCollectionIngressClass**](NetworkingV1Api.md#deleteCollectionIngressClass) | **DELETE** /apis/networking.k8s.io/v1/ingressclasses | [**deleteCollectionNamespacedIngress**](NetworkingV1Api.md#deleteCollectionNamespacedIngress) | **DELETE** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses | [**deleteCollectionNamespacedNetworkPolicy**](NetworkingV1Api.md#deleteCollectionNamespacedNetworkPolicy) | **DELETE** /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies | +[**deleteCollectionServiceCIDR**](NetworkingV1Api.md#deleteCollectionServiceCIDR) | **DELETE** /apis/networking.k8s.io/v1/servicecidrs | +[**deleteIPAddress**](NetworkingV1Api.md#deleteIPAddress) | **DELETE** /apis/networking.k8s.io/v1/ipaddresses/{name} | [**deleteIngressClass**](NetworkingV1Api.md#deleteIngressClass) | **DELETE** /apis/networking.k8s.io/v1/ingressclasses/{name} | [**deleteNamespacedIngress**](NetworkingV1Api.md#deleteNamespacedIngress) | **DELETE** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name} | [**deleteNamespacedNetworkPolicy**](NetworkingV1Api.md#deleteNamespacedNetworkPolicy) | **DELETE** /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name} | +[**deleteServiceCIDR**](NetworkingV1Api.md#deleteServiceCIDR) | **DELETE** /apis/networking.k8s.io/v1/servicecidrs/{name} | [**getAPIResources**](NetworkingV1Api.md#getAPIResources) | **GET** /apis/networking.k8s.io/v1/ | +[**listIPAddress**](NetworkingV1Api.md#listIPAddress) | **GET** /apis/networking.k8s.io/v1/ipaddresses | [**listIngressClass**](NetworkingV1Api.md#listIngressClass) | **GET** /apis/networking.k8s.io/v1/ingressclasses | [**listIngressForAllNamespaces**](NetworkingV1Api.md#listIngressForAllNamespaces) | **GET** /apis/networking.k8s.io/v1/ingresses | [**listNamespacedIngress**](NetworkingV1Api.md#listNamespacedIngress) | **GET** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses | [**listNamespacedNetworkPolicy**](NetworkingV1Api.md#listNamespacedNetworkPolicy) | **GET** /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies | [**listNetworkPolicyForAllNamespaces**](NetworkingV1Api.md#listNetworkPolicyForAllNamespaces) | **GET** /apis/networking.k8s.io/v1/networkpolicies | +[**listServiceCIDR**](NetworkingV1Api.md#listServiceCIDR) | **GET** /apis/networking.k8s.io/v1/servicecidrs | +[**patchIPAddress**](NetworkingV1Api.md#patchIPAddress) | **PATCH** /apis/networking.k8s.io/v1/ipaddresses/{name} | [**patchIngressClass**](NetworkingV1Api.md#patchIngressClass) | **PATCH** /apis/networking.k8s.io/v1/ingressclasses/{name} | [**patchNamespacedIngress**](NetworkingV1Api.md#patchNamespacedIngress) | **PATCH** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name} | [**patchNamespacedIngressStatus**](NetworkingV1Api.md#patchNamespacedIngressStatus) | **PATCH** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status | [**patchNamespacedNetworkPolicy**](NetworkingV1Api.md#patchNamespacedNetworkPolicy) | **PATCH** /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name} | +[**patchServiceCIDR**](NetworkingV1Api.md#patchServiceCIDR) | **PATCH** /apis/networking.k8s.io/v1/servicecidrs/{name} | +[**patchServiceCIDRStatus**](NetworkingV1Api.md#patchServiceCIDRStatus) | **PATCH** /apis/networking.k8s.io/v1/servicecidrs/{name}/status | +[**readIPAddress**](NetworkingV1Api.md#readIPAddress) | **GET** /apis/networking.k8s.io/v1/ipaddresses/{name} | [**readIngressClass**](NetworkingV1Api.md#readIngressClass) | **GET** /apis/networking.k8s.io/v1/ingressclasses/{name} | [**readNamespacedIngress**](NetworkingV1Api.md#readNamespacedIngress) | **GET** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name} | [**readNamespacedIngressStatus**](NetworkingV1Api.md#readNamespacedIngressStatus) | **GET** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status | [**readNamespacedNetworkPolicy**](NetworkingV1Api.md#readNamespacedNetworkPolicy) | **GET** /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name} | +[**readServiceCIDR**](NetworkingV1Api.md#readServiceCIDR) | **GET** /apis/networking.k8s.io/v1/servicecidrs/{name} | +[**readServiceCIDRStatus**](NetworkingV1Api.md#readServiceCIDRStatus) | **GET** /apis/networking.k8s.io/v1/servicecidrs/{name}/status | +[**replaceIPAddress**](NetworkingV1Api.md#replaceIPAddress) | **PUT** /apis/networking.k8s.io/v1/ipaddresses/{name} | [**replaceIngressClass**](NetworkingV1Api.md#replaceIngressClass) | **PUT** /apis/networking.k8s.io/v1/ingressclasses/{name} | [**replaceNamespacedIngress**](NetworkingV1Api.md#replaceNamespacedIngress) | **PUT** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name} | [**replaceNamespacedIngressStatus**](NetworkingV1Api.md#replaceNamespacedIngressStatus) | **PUT** /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status | [**replaceNamespacedNetworkPolicy**](NetworkingV1Api.md#replaceNamespacedNetworkPolicy) | **PUT** /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name} | +[**replaceServiceCIDR**](NetworkingV1Api.md#replaceServiceCIDR) | **PUT** /apis/networking.k8s.io/v1/servicecidrs/{name} | +[**replaceServiceCIDRStatus**](NetworkingV1Api.md#replaceServiceCIDRStatus) | **PUT** /apis/networking.k8s.io/v1/servicecidrs/{name}/status | +# **createIPAddress** +> V1IPAddress createIPAddress(body) + +create an IPAddress + +### Example + + +```typescript +import { createConfiguration, NetworkingV1Api } from ''; +import type { NetworkingV1ApiCreateIPAddressRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new NetworkingV1Api(configuration); + +const request: NetworkingV1ApiCreateIPAddressRequest = { + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + parentRef: { + group: "group_example", + name: "name_example", + namespace: "namespace_example", + resource: "resource_example", + }, + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.createIPAddress(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1IPAddress**| | + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1IPAddress** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + # **createIngressClass** > V1IngressClass createIngressClass(body) @@ -574,22 +712,152 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **deleteCollectionIngressClass** -> V1Status deleteCollectionIngressClass() +# **createServiceCIDR** +> V1ServiceCIDR createServiceCIDR(body) -delete collection of IngressClass +create a ServiceCIDR ### Example ```typescript import { createConfiguration, NetworkingV1Api } from ''; -import type { NetworkingV1ApiDeleteCollectionIngressClassRequest } from ''; +import type { NetworkingV1ApiCreateServiceCIDRRequest } from ''; const configuration = createConfiguration(); const apiInstance = new NetworkingV1Api(configuration); -const request: NetworkingV1ApiDeleteCollectionIngressClassRequest = { +const request: NetworkingV1ApiCreateServiceCIDRRequest = { + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + cidrs: [ + "cidrs_example", + ], + }, + status: { + conditions: [ + { + lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), + message: "message_example", + observedGeneration: 1, + reason: "reason_example", + status: "status_example", + type: "type_example", + }, + ], + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.createServiceCIDR(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1ServiceCIDR**| | + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1ServiceCIDR** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteCollectionIPAddress** +> V1Status deleteCollectionIPAddress() + +delete collection of IPAddress + +### Example + + +```typescript +import { createConfiguration, NetworkingV1Api } from ''; +import type { NetworkingV1ApiDeleteCollectionIPAddressRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new NetworkingV1Api(configuration); + +const request: NetworkingV1ApiDeleteCollectionIPAddressRequest = { // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -636,7 +904,7 @@ const request: NetworkingV1ApiDeleteCollectionIngressClassRequest = { }, }; -const data = await apiInstance.deleteCollectionIngressClass(request); +const data = await apiInstance.deleteCollectionIPAddress(request); console.log('API called successfully. Returned data:', data); ``` @@ -684,24 +952,22 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **deleteCollectionNamespacedIngress** -> V1Status deleteCollectionNamespacedIngress() +# **deleteCollectionIngressClass** +> V1Status deleteCollectionIngressClass() -delete collection of Ingress +delete collection of IngressClass ### Example ```typescript import { createConfiguration, NetworkingV1Api } from ''; -import type { NetworkingV1ApiDeleteCollectionNamespacedIngressRequest } from ''; +import type { NetworkingV1ApiDeleteCollectionIngressClassRequest } from ''; const configuration = createConfiguration(); const apiInstance = new NetworkingV1Api(configuration); -const request: NetworkingV1ApiDeleteCollectionNamespacedIngressRequest = { - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", +const request: NetworkingV1ApiDeleteCollectionIngressClassRequest = { // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -748,7 +1014,7 @@ const request: NetworkingV1ApiDeleteCollectionNamespacedIngressRequest = { }, }; -const data = await apiInstance.deleteCollectionNamespacedIngress(request); +const data = await apiInstance.deleteCollectionIngressClass(request); console.log('API called successfully. Returned data:', data); ``` @@ -758,7 +1024,6 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | **V1DeleteOptions**| | - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined @@ -797,22 +1062,22 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **deleteCollectionNamespacedNetworkPolicy** -> V1Status deleteCollectionNamespacedNetworkPolicy() +# **deleteCollectionNamespacedIngress** +> V1Status deleteCollectionNamespacedIngress() -delete collection of NetworkPolicy +delete collection of Ingress ### Example ```typescript import { createConfiguration, NetworkingV1Api } from ''; -import type { NetworkingV1ApiDeleteCollectionNamespacedNetworkPolicyRequest } from ''; +import type { NetworkingV1ApiDeleteCollectionNamespacedIngressRequest } from ''; const configuration = createConfiguration(); const apiInstance = new NetworkingV1Api(configuration); -const request: NetworkingV1ApiDeleteCollectionNamespacedNetworkPolicyRequest = { +const request: NetworkingV1ApiDeleteCollectionNamespacedIngressRequest = { // object name and auth scope, such as for teams and projects namespace: "namespace_example", // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) @@ -861,7 +1126,7 @@ const request: NetworkingV1ApiDeleteCollectionNamespacedNetworkPolicyRequest = { }, }; -const data = await apiInstance.deleteCollectionNamespacedNetworkPolicy(request); +const data = await apiInstance.deleteCollectionNamespacedIngress(request); console.log('API called successfully. Returned data:', data); ``` @@ -910,36 +1175,52 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **deleteIngressClass** -> V1Status deleteIngressClass() +# **deleteCollectionNamespacedNetworkPolicy** +> V1Status deleteCollectionNamespacedNetworkPolicy() -delete an IngressClass +delete collection of NetworkPolicy ### Example ```typescript import { createConfiguration, NetworkingV1Api } from ''; -import type { NetworkingV1ApiDeleteIngressClassRequest } from ''; +import type { NetworkingV1ApiDeleteCollectionNamespacedNetworkPolicyRequest } from ''; const configuration = createConfiguration(); const apiInstance = new NetworkingV1Api(configuration); -const request: NetworkingV1ApiDeleteIngressClassRequest = { - // name of the IngressClass - name: "name_example", +const request: NetworkingV1ApiDeleteCollectionNamespacedNetworkPolicyRequest = { + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) dryRun: "dryRun_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) gracePeriodSeconds: 1, // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) ignoreStoreReadErrorWithClusterBreakingPotential: true, + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) orphanDependents: true, // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) propagationPolicy: "propagationPolicy_example", + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, body: { apiVersion: "apiVersion_example", @@ -958,7 +1239,7 @@ const request: NetworkingV1ApiDeleteIngressClassRequest = { }, }; -const data = await apiInstance.deleteIngressClass(request); +const data = await apiInstance.deleteCollectionNamespacedNetworkPolicy(request); console.log('API called successfully. Returned data:', data); ``` @@ -968,13 +1249,21 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | **V1DeleteOptions**| | - **name** | [**string**] | name of the IngressClass | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined ### Return type @@ -995,43 +1284,54 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**202** | Accepted | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **deleteNamespacedIngress** -> V1Status deleteNamespacedIngress() +# **deleteCollectionServiceCIDR** +> V1Status deleteCollectionServiceCIDR() -delete an Ingress +delete collection of ServiceCIDR ### Example ```typescript import { createConfiguration, NetworkingV1Api } from ''; -import type { NetworkingV1ApiDeleteNamespacedIngressRequest } from ''; +import type { NetworkingV1ApiDeleteCollectionServiceCIDRRequest } from ''; const configuration = createConfiguration(); const apiInstance = new NetworkingV1Api(configuration); -const request: NetworkingV1ApiDeleteNamespacedIngressRequest = { - // name of the Ingress - name: "name_example", - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", +const request: NetworkingV1ApiDeleteCollectionServiceCIDRRequest = { // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) dryRun: "dryRun_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) gracePeriodSeconds: 1, // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) ignoreStoreReadErrorWithClusterBreakingPotential: true, + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) orphanDependents: true, // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) propagationPolicy: "propagationPolicy_example", + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, body: { apiVersion: "apiVersion_example", @@ -1050,7 +1350,7 @@ const request: NetworkingV1ApiDeleteNamespacedIngressRequest = { }, }; -const data = await apiInstance.deleteNamespacedIngress(request); +const data = await apiInstance.deleteCollectionServiceCIDR(request); console.log('API called successfully. Returned data:', data); ``` @@ -1060,14 +1360,20 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | **V1DeleteOptions**| | - **name** | [**string**] | name of the Ingress | defaults to undefined - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined ### Return type @@ -1088,31 +1394,28 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**202** | Accepted | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **deleteNamespacedNetworkPolicy** -> V1Status deleteNamespacedNetworkPolicy() +# **deleteIPAddress** +> V1Status deleteIPAddress() -delete a NetworkPolicy +delete an IPAddress ### Example ```typescript import { createConfiguration, NetworkingV1Api } from ''; -import type { NetworkingV1ApiDeleteNamespacedNetworkPolicyRequest } from ''; +import type { NetworkingV1ApiDeleteIPAddressRequest } from ''; const configuration = createConfiguration(); const apiInstance = new NetworkingV1Api(configuration); -const request: NetworkingV1ApiDeleteNamespacedNetworkPolicyRequest = { - // name of the NetworkPolicy +const request: NetworkingV1ApiDeleteIPAddressRequest = { + // name of the IPAddress name: "name_example", - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) @@ -1143,7 +1446,7 @@ const request: NetworkingV1ApiDeleteNamespacedNetworkPolicyRequest = { }, }; -const data = await apiInstance.deleteNamespacedNetworkPolicy(request); +const data = await apiInstance.deleteIPAddress(request); console.log('API called successfully. Returned data:', data); ``` @@ -1153,8 +1456,7 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | **V1DeleteOptions**| | - **name** | [**string**] | name of the NetworkPolicy | defaults to undefined - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **name** | [**string**] | name of the IPAddress | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined @@ -1186,34 +1488,76 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **getAPIResources** -> V1APIResourceList getAPIResources() +# **deleteIngressClass** +> V1Status deleteIngressClass() -get available resources +delete an IngressClass ### Example ```typescript import { createConfiguration, NetworkingV1Api } from ''; +import type { NetworkingV1ApiDeleteIngressClassRequest } from ''; const configuration = createConfiguration(); const apiInstance = new NetworkingV1Api(configuration); -const request = {}; +const request: NetworkingV1ApiDeleteIngressClassRequest = { + // name of the IngressClass + name: "name_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; -const data = await apiInstance.getAPIResources(request); +const data = await apiInstance.deleteIngressClass(request); console.log('API called successfully. Returned data:', data); ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **name** | [**string**] | name of the IngressClass | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined ### Return type -**V1APIResourceList** +**V1Status** ### Authorization @@ -1229,51 +1573,62 @@ This endpoint does not need any parameter. | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**202** | Accepted | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **listIngressClass** -> V1IngressClassList listIngressClass() +# **deleteNamespacedIngress** +> V1Status deleteNamespacedIngress() -list or watch objects of kind IngressClass +delete an Ingress ### Example ```typescript import { createConfiguration, NetworkingV1Api } from ''; -import type { NetworkingV1ApiListIngressClassRequest } from ''; +import type { NetworkingV1ApiDeleteNamespacedIngressRequest } from ''; const configuration = createConfiguration(); const apiInstance = new NetworkingV1Api(configuration); -const request: NetworkingV1ApiListIngressClassRequest = { +const request: NetworkingV1ApiDeleteNamespacedIngressRequest = { + // name of the Ingress + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", - // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) - allowWatchBookmarks: true, - // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - _continue: "continue_example", - // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - fieldSelector: "fieldSelector_example", - // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - labelSelector: "labelSelector_example", - // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - limit: 1, - // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersion: "resourceVersion_example", - // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersionMatch: "resourceVersionMatch_example", - // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - sendInitialEvents: true, - // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - timeoutSeconds: 1, - // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - watch: true, + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, }; -const data = await apiInstance.listIngressClass(request); +const data = await apiInstance.deleteNamespacedIngress(request); console.log('API called successfully. Returned data:', data); ``` @@ -1282,22 +1637,20 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **name** | [**string**] | name of the Ingress | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined - **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined - **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined - **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined - **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined - **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined - **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined - **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined ### Return type -**V1IngressClassList** +**V1Status** ### Authorization @@ -1306,58 +1659,69 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**202** | Accepted | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **listIngressForAllNamespaces** -> V1IngressList listIngressForAllNamespaces() +# **deleteNamespacedNetworkPolicy** +> V1Status deleteNamespacedNetworkPolicy() -list or watch objects of kind Ingress +delete a NetworkPolicy ### Example ```typescript import { createConfiguration, NetworkingV1Api } from ''; -import type { NetworkingV1ApiListIngressForAllNamespacesRequest } from ''; +import type { NetworkingV1ApiDeleteNamespacedNetworkPolicyRequest } from ''; const configuration = createConfiguration(); const apiInstance = new NetworkingV1Api(configuration); -const request: NetworkingV1ApiListIngressForAllNamespacesRequest = { - // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) - allowWatchBookmarks: true, - // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - _continue: "continue_example", - // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - fieldSelector: "fieldSelector_example", - // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - labelSelector: "labelSelector_example", - // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - limit: 1, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersion: "resourceVersion_example", - // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersionMatch: "resourceVersionMatch_example", - // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - sendInitialEvents: true, - // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - timeoutSeconds: 1, - // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - watch: true, +const request: NetworkingV1ApiDeleteNamespacedNetworkPolicyRequest = { + // name of the NetworkPolicy + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, }; -const data = await apiInstance.listIngressForAllNamespaces(request); +const data = await apiInstance.deleteNamespacedNetworkPolicy(request); console.log('API called successfully. Returned data:', data); ``` @@ -1366,22 +1730,20 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined - **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined - **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined - **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined - **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **body** | **V1DeleteOptions**| | + **name** | [**string**] | name of the NetworkPolicy | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined - **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined - **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined ### Return type -**V1IngressList** +**V1Status** ### Authorization @@ -1390,35 +1752,171 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**202** | Accepted | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **listNamespacedIngress** -> V1IngressList listNamespacedIngress() +# **deleteServiceCIDR** +> V1Status deleteServiceCIDR() -list or watch objects of kind Ingress +delete a ServiceCIDR ### Example ```typescript import { createConfiguration, NetworkingV1Api } from ''; -import type { NetworkingV1ApiListNamespacedIngressRequest } from ''; +import type { NetworkingV1ApiDeleteServiceCIDRRequest } from ''; const configuration = createConfiguration(); const apiInstance = new NetworkingV1Api(configuration); -const request: NetworkingV1ApiListNamespacedIngressRequest = { - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", +const request: NetworkingV1ApiDeleteServiceCIDRRequest = { + // name of the ServiceCIDR + name: "name_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteServiceCIDR(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **name** | [**string**] | name of the ServiceCIDR | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + + +### Return type + +**V1Status** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **getAPIResources** +> V1APIResourceList getAPIResources() + +get available resources + +### Example + + +```typescript +import { createConfiguration, NetworkingV1Api } from ''; + +const configuration = createConfiguration(); +const apiInstance = new NetworkingV1Api(configuration); + +const request = {}; + +const data = await apiInstance.getAPIResources(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters +This endpoint does not need any parameter. + + +### Return type + +**V1APIResourceList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listIPAddress** +> V1IPAddressList listIPAddress() + +list or watch objects of kind IPAddress + +### Example + + +```typescript +import { createConfiguration, NetworkingV1Api } from ''; +import type { NetworkingV1ApiListIPAddressRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new NetworkingV1Api(configuration); + +const request: NetworkingV1ApiListIPAddressRequest = { // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) @@ -1443,7 +1941,7 @@ const request: NetworkingV1ApiListNamespacedIngressRequest = { watch: true, }; -const data = await apiInstance.listNamespacedIngress(request); +const data = await apiInstance.listIPAddress(request); console.log('API called successfully. Returned data:', data); ``` @@ -1452,7 +1950,6 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined @@ -1468,7 +1965,7 @@ Name | Type | Description | Notes ### Return type -**V1IngressList** +**V1IPAddressList** ### Authorization @@ -1488,24 +1985,22 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **listNamespacedNetworkPolicy** -> V1NetworkPolicyList listNamespacedNetworkPolicy() +# **listIngressClass** +> V1IngressClassList listIngressClass() -list or watch objects of kind NetworkPolicy +list or watch objects of kind IngressClass ### Example ```typescript import { createConfiguration, NetworkingV1Api } from ''; -import type { NetworkingV1ApiListNamespacedNetworkPolicyRequest } from ''; +import type { NetworkingV1ApiListIngressClassRequest } from ''; const configuration = createConfiguration(); const apiInstance = new NetworkingV1Api(configuration); -const request: NetworkingV1ApiListNamespacedNetworkPolicyRequest = { - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", +const request: NetworkingV1ApiListIngressClassRequest = { // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) @@ -1530,7 +2025,7 @@ const request: NetworkingV1ApiListNamespacedNetworkPolicyRequest = { watch: true, }; -const data = await apiInstance.listNamespacedNetworkPolicy(request); +const data = await apiInstance.listIngressClass(request); console.log('API called successfully. Returned data:', data); ``` @@ -1539,7 +2034,6 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined @@ -1555,7 +2049,7 @@ Name | Type | Description | Notes ### Return type -**V1NetworkPolicyList** +**V1IngressClassList** ### Authorization @@ -1575,22 +2069,22 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **listNetworkPolicyForAllNamespaces** -> V1NetworkPolicyList listNetworkPolicyForAllNamespaces() +# **listIngressForAllNamespaces** +> V1IngressList listIngressForAllNamespaces() -list or watch objects of kind NetworkPolicy +list or watch objects of kind Ingress ### Example ```typescript import { createConfiguration, NetworkingV1Api } from ''; -import type { NetworkingV1ApiListNetworkPolicyForAllNamespacesRequest } from ''; +import type { NetworkingV1ApiListIngressForAllNamespacesRequest } from ''; const configuration = createConfiguration(); const apiInstance = new NetworkingV1Api(configuration); -const request: NetworkingV1ApiListNetworkPolicyForAllNamespacesRequest = { +const request: NetworkingV1ApiListIngressForAllNamespacesRequest = { // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) allowWatchBookmarks: true, // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) @@ -1615,7 +2109,7 @@ const request: NetworkingV1ApiListNetworkPolicyForAllNamespacesRequest = { watch: true, }; -const data = await apiInstance.listNetworkPolicyForAllNamespaces(request); +const data = await apiInstance.listIngressForAllNamespaces(request); console.log('API called successfully. Returned data:', data); ``` @@ -1639,7 +2133,7 @@ Name | Type | Description | Notes ### Return type -**V1NetworkPolicyList** +**V1IngressList** ### Authorization @@ -1659,24 +2153,666 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **patchIngressClass** -> V1IngressClass patchIngressClass(body) +# **listNamespacedIngress** +> V1IngressList listNamespacedIngress() + +list or watch objects of kind Ingress + +### Example + + +```typescript +import { createConfiguration, NetworkingV1Api } from ''; +import type { NetworkingV1ApiListNamespacedIngressRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new NetworkingV1Api(configuration); + +const request: NetworkingV1ApiListNamespacedIngressRequest = { + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listNamespacedIngress(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1IngressList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listNamespacedNetworkPolicy** +> V1NetworkPolicyList listNamespacedNetworkPolicy() + +list or watch objects of kind NetworkPolicy + +### Example + + +```typescript +import { createConfiguration, NetworkingV1Api } from ''; +import type { NetworkingV1ApiListNamespacedNetworkPolicyRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new NetworkingV1Api(configuration); + +const request: NetworkingV1ApiListNamespacedNetworkPolicyRequest = { + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listNamespacedNetworkPolicy(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1NetworkPolicyList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listNetworkPolicyForAllNamespaces** +> V1NetworkPolicyList listNetworkPolicyForAllNamespaces() + +list or watch objects of kind NetworkPolicy + +### Example + + +```typescript +import { createConfiguration, NetworkingV1Api } from ''; +import type { NetworkingV1ApiListNetworkPolicyForAllNamespacesRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new NetworkingV1Api(configuration); + +const request: NetworkingV1ApiListNetworkPolicyForAllNamespacesRequest = { + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listNetworkPolicyForAllNamespaces(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1NetworkPolicyList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listServiceCIDR** +> V1ServiceCIDRList listServiceCIDR() + +list or watch objects of kind ServiceCIDR + +### Example + + +```typescript +import { createConfiguration, NetworkingV1Api } from ''; +import type { NetworkingV1ApiListServiceCIDRRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new NetworkingV1Api(configuration); + +const request: NetworkingV1ApiListServiceCIDRRequest = { + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listServiceCIDR(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1ServiceCIDRList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **patchIPAddress** +> V1IPAddress patchIPAddress(body) + +partially update the specified IPAddress + +### Example + + +```typescript +import { createConfiguration, NetworkingV1Api } from ''; +import type { NetworkingV1ApiPatchIPAddressRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new NetworkingV1Api(configuration); + +const request: NetworkingV1ApiPatchIPAddressRequest = { + // name of the IPAddress + name: "name_example", + + body: {}, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", + // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + force: true, +}; + +const data = await apiInstance.patchIPAddress(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **any**| | + **name** | [**string**] | name of the IPAddress | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined + + +### Return type + +**V1IPAddress** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **patchIngressClass** +> V1IngressClass patchIngressClass(body) + +partially update the specified IngressClass + +### Example + + +```typescript +import { createConfiguration, NetworkingV1Api } from ''; +import type { NetworkingV1ApiPatchIngressClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new NetworkingV1Api(configuration); + +const request: NetworkingV1ApiPatchIngressClassRequest = { + // name of the IngressClass + name: "name_example", + + body: {}, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", + // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + force: true, +}; + +const data = await apiInstance.patchIngressClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **any**| | + **name** | [**string**] | name of the IngressClass | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined + + +### Return type + +**V1IngressClass** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **patchNamespacedIngress** +> V1Ingress patchNamespacedIngress(body) + +partially update the specified Ingress + +### Example + + +```typescript +import { createConfiguration, NetworkingV1Api } from ''; +import type { NetworkingV1ApiPatchNamespacedIngressRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new NetworkingV1Api(configuration); + +const request: NetworkingV1ApiPatchNamespacedIngressRequest = { + // name of the Ingress + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: {}, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", + // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + force: true, +}; + +const data = await apiInstance.patchNamespacedIngress(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **any**| | + **name** | [**string**] | name of the Ingress | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined + + +### Return type + +**V1Ingress** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **patchNamespacedIngressStatus** +> V1Ingress patchNamespacedIngressStatus(body) + +partially update status of the specified Ingress + +### Example + + +```typescript +import { createConfiguration, NetworkingV1Api } from ''; +import type { NetworkingV1ApiPatchNamespacedIngressStatusRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new NetworkingV1Api(configuration); + +const request: NetworkingV1ApiPatchNamespacedIngressStatusRequest = { + // name of the Ingress + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: {}, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", + // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + force: true, +}; + +const data = await apiInstance.patchNamespacedIngressStatus(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **any**| | + **name** | [**string**] | name of the Ingress | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined + + +### Return type + +**V1Ingress** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **patchNamespacedNetworkPolicy** +> V1NetworkPolicy patchNamespacedNetworkPolicy(body) -partially update the specified IngressClass +partially update the specified NetworkPolicy ### Example ```typescript import { createConfiguration, NetworkingV1Api } from ''; -import type { NetworkingV1ApiPatchIngressClassRequest } from ''; +import type { NetworkingV1ApiPatchNamespacedNetworkPolicyRequest } from ''; const configuration = createConfiguration(); const apiInstance = new NetworkingV1Api(configuration); -const request: NetworkingV1ApiPatchIngressClassRequest = { - // name of the IngressClass +const request: NetworkingV1ApiPatchNamespacedNetworkPolicyRequest = { + // name of the NetworkPolicy name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", body: {}, // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) @@ -1691,7 +2827,7 @@ const request: NetworkingV1ApiPatchIngressClassRequest = { force: true, }; -const data = await apiInstance.patchIngressClass(request); +const data = await apiInstance.patchNamespacedNetworkPolicy(request); console.log('API called successfully. Returned data:', data); ``` @@ -1701,7 +2837,8 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | **any**| | - **name** | [**string**] | name of the IngressClass | defaults to undefined + **name** | [**string**] | name of the NetworkPolicy | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined @@ -1711,7 +2848,7 @@ Name | Type | Description | Notes ### Return type -**V1IngressClass** +**V1NetworkPolicy** ### Authorization @@ -1732,26 +2869,24 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **patchNamespacedIngress** -> V1Ingress patchNamespacedIngress(body) +# **patchServiceCIDR** +> V1ServiceCIDR patchServiceCIDR(body) -partially update the specified Ingress +partially update the specified ServiceCIDR ### Example ```typescript import { createConfiguration, NetworkingV1Api } from ''; -import type { NetworkingV1ApiPatchNamespacedIngressRequest } from ''; +import type { NetworkingV1ApiPatchServiceCIDRRequest } from ''; const configuration = createConfiguration(); const apiInstance = new NetworkingV1Api(configuration); -const request: NetworkingV1ApiPatchNamespacedIngressRequest = { - // name of the Ingress +const request: NetworkingV1ApiPatchServiceCIDRRequest = { + // name of the ServiceCIDR name: "name_example", - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", body: {}, // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) @@ -1766,7 +2901,7 @@ const request: NetworkingV1ApiPatchNamespacedIngressRequest = { force: true, }; -const data = await apiInstance.patchNamespacedIngress(request); +const data = await apiInstance.patchServiceCIDR(request); console.log('API called successfully. Returned data:', data); ``` @@ -1776,8 +2911,7 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | **any**| | - **name** | [**string**] | name of the Ingress | defaults to undefined - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **name** | [**string**] | name of the ServiceCIDR | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined @@ -1787,7 +2921,7 @@ Name | Type | Description | Notes ### Return type -**V1Ingress** +**V1ServiceCIDR** ### Authorization @@ -1808,26 +2942,24 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **patchNamespacedIngressStatus** -> V1Ingress patchNamespacedIngressStatus(body) +# **patchServiceCIDRStatus** +> V1ServiceCIDR patchServiceCIDRStatus(body) -partially update status of the specified Ingress +partially update status of the specified ServiceCIDR ### Example ```typescript import { createConfiguration, NetworkingV1Api } from ''; -import type { NetworkingV1ApiPatchNamespacedIngressStatusRequest } from ''; +import type { NetworkingV1ApiPatchServiceCIDRStatusRequest } from ''; const configuration = createConfiguration(); const apiInstance = new NetworkingV1Api(configuration); -const request: NetworkingV1ApiPatchNamespacedIngressStatusRequest = { - // name of the Ingress +const request: NetworkingV1ApiPatchServiceCIDRStatusRequest = { + // name of the ServiceCIDR name: "name_example", - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", body: {}, // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) @@ -1842,7 +2974,7 @@ const request: NetworkingV1ApiPatchNamespacedIngressStatusRequest = { force: true, }; -const data = await apiInstance.patchNamespacedIngressStatus(request); +const data = await apiInstance.patchServiceCIDRStatus(request); console.log('API called successfully. Returned data:', data); ``` @@ -1852,8 +2984,7 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | **any**| | - **name** | [**string**] | name of the Ingress | defaults to undefined - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **name** | [**string**] | name of the ServiceCIDR | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined @@ -1863,7 +2994,7 @@ Name | Type | Description | Notes ### Return type -**V1Ingress** +**V1ServiceCIDR** ### Authorization @@ -1884,41 +3015,29 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **patchNamespacedNetworkPolicy** -> V1NetworkPolicy patchNamespacedNetworkPolicy(body) +# **readIPAddress** +> V1IPAddress readIPAddress() -partially update the specified NetworkPolicy +read the specified IPAddress ### Example ```typescript import { createConfiguration, NetworkingV1Api } from ''; -import type { NetworkingV1ApiPatchNamespacedNetworkPolicyRequest } from ''; +import type { NetworkingV1ApiReadIPAddressRequest } from ''; const configuration = createConfiguration(); const apiInstance = new NetworkingV1Api(configuration); -const request: NetworkingV1ApiPatchNamespacedNetworkPolicyRequest = { - // name of the NetworkPolicy +const request: NetworkingV1ApiReadIPAddressRequest = { + // name of the IPAddress name: "name_example", - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - - body: {}, // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", - // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - force: true, }; -const data = await apiInstance.patchNamespacedNetworkPolicy(request); +const data = await apiInstance.readIPAddress(request); console.log('API called successfully. Returned data:', data); ``` @@ -1927,19 +3046,13 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **any**| | - **name** | [**string**] | name of the NetworkPolicy | defaults to undefined - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **name** | [**string**] | name of the IPAddress | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined - **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined ### Return type -**V1NetworkPolicy** +**V1IPAddress** ### Authorization @@ -1947,7 +3060,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor @@ -1955,7 +3068,6 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**201** | Created | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) @@ -2161,7 +3273,240 @@ const request: NetworkingV1ApiReadNamespacedNetworkPolicyRequest = { pretty: "pretty_example", }; -const data = await apiInstance.readNamespacedNetworkPolicy(request); +const data = await apiInstance.readNamespacedNetworkPolicy(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | [**string**] | name of the NetworkPolicy | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + + +### Return type + +**V1NetworkPolicy** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **readServiceCIDR** +> V1ServiceCIDR readServiceCIDR() + +read the specified ServiceCIDR + +### Example + + +```typescript +import { createConfiguration, NetworkingV1Api } from ''; +import type { NetworkingV1ApiReadServiceCIDRRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new NetworkingV1Api(configuration); + +const request: NetworkingV1ApiReadServiceCIDRRequest = { + // name of the ServiceCIDR + name: "name_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", +}; + +const data = await apiInstance.readServiceCIDR(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | [**string**] | name of the ServiceCIDR | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + + +### Return type + +**V1ServiceCIDR** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **readServiceCIDRStatus** +> V1ServiceCIDR readServiceCIDRStatus() + +read status of the specified ServiceCIDR + +### Example + + +```typescript +import { createConfiguration, NetworkingV1Api } from ''; +import type { NetworkingV1ApiReadServiceCIDRStatusRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new NetworkingV1Api(configuration); + +const request: NetworkingV1ApiReadServiceCIDRStatusRequest = { + // name of the ServiceCIDR + name: "name_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", +}; + +const data = await apiInstance.readServiceCIDRStatus(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | [**string**] | name of the ServiceCIDR | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + + +### Return type + +**V1ServiceCIDR** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **replaceIPAddress** +> V1IPAddress replaceIPAddress(body) + +replace the specified IPAddress + +### Example + + +```typescript +import { createConfiguration, NetworkingV1Api } from ''; +import type { NetworkingV1ApiReplaceIPAddressRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new NetworkingV1Api(configuration); + +const request: NetworkingV1ApiReplaceIPAddressRequest = { + // name of the IPAddress + name: "name_example", + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + parentRef: { + group: "group_example", + name: "name_example", + namespace: "namespace_example", + resource: "resource_example", + }, + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.replaceIPAddress(request); console.log('API called successfully. Returned data:', data); ``` @@ -2170,14 +3515,17 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | [**string**] | name of the NetworkPolicy | defaults to undefined - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **body** | **V1IPAddress**| | + **name** | [**string**] | name of the IPAddress | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined ### Return type -**V1NetworkPolicy** +**V1IPAddress** ### Authorization @@ -2193,6 +3541,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**201** | Created | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) @@ -2931,4 +4280,268 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) +# **replaceServiceCIDR** +> V1ServiceCIDR replaceServiceCIDR(body) + +replace the specified ServiceCIDR + +### Example + + +```typescript +import { createConfiguration, NetworkingV1Api } from ''; +import type { NetworkingV1ApiReplaceServiceCIDRRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new NetworkingV1Api(configuration); + +const request: NetworkingV1ApiReplaceServiceCIDRRequest = { + // name of the ServiceCIDR + name: "name_example", + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + cidrs: [ + "cidrs_example", + ], + }, + status: { + conditions: [ + { + lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), + message: "message_example", + observedGeneration: 1, + reason: "reason_example", + status: "status_example", + type: "type_example", + }, + ], + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.replaceServiceCIDR(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1ServiceCIDR**| | + **name** | [**string**] | name of the ServiceCIDR | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1ServiceCIDR** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **replaceServiceCIDRStatus** +> V1ServiceCIDR replaceServiceCIDRStatus(body) + +replace status of the specified ServiceCIDR + +### Example + + +```typescript +import { createConfiguration, NetworkingV1Api } from ''; +import type { NetworkingV1ApiReplaceServiceCIDRStatusRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new NetworkingV1Api(configuration); + +const request: NetworkingV1ApiReplaceServiceCIDRStatusRequest = { + // name of the ServiceCIDR + name: "name_example", + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + cidrs: [ + "cidrs_example", + ], + }, + status: { + conditions: [ + { + lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), + message: "message_example", + observedGeneration: 1, + reason: "reason_example", + status: "status_example", + type: "type_example", + }, + ], + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.replaceServiceCIDRStatus(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1ServiceCIDR**| | + **name** | [**string**] | name of the ServiceCIDR | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1ServiceCIDR** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + diff --git a/src/gen/ResourceV1Api.md b/src/gen/ResourceV1Api.md new file mode 100644 index 0000000000..65c694ad1e --- /dev/null +++ b/src/gen/ResourceV1Api.md @@ -0,0 +1,4238 @@ +# .ResourceV1Api + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createDeviceClass**](ResourceV1Api.md#createDeviceClass) | **POST** /apis/resource.k8s.io/v1/deviceclasses | +[**createNamespacedResourceClaim**](ResourceV1Api.md#createNamespacedResourceClaim) | **POST** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims | +[**createNamespacedResourceClaimTemplate**](ResourceV1Api.md#createNamespacedResourceClaimTemplate) | **POST** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates | +[**createResourceSlice**](ResourceV1Api.md#createResourceSlice) | **POST** /apis/resource.k8s.io/v1/resourceslices | +[**deleteCollectionDeviceClass**](ResourceV1Api.md#deleteCollectionDeviceClass) | **DELETE** /apis/resource.k8s.io/v1/deviceclasses | +[**deleteCollectionNamespacedResourceClaim**](ResourceV1Api.md#deleteCollectionNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims | +[**deleteCollectionNamespacedResourceClaimTemplate**](ResourceV1Api.md#deleteCollectionNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates | +[**deleteCollectionResourceSlice**](ResourceV1Api.md#deleteCollectionResourceSlice) | **DELETE** /apis/resource.k8s.io/v1/resourceslices | +[**deleteDeviceClass**](ResourceV1Api.md#deleteDeviceClass) | **DELETE** /apis/resource.k8s.io/v1/deviceclasses/{name} | +[**deleteNamespacedResourceClaim**](ResourceV1Api.md#deleteNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name} | +[**deleteNamespacedResourceClaimTemplate**](ResourceV1Api.md#deleteNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name} | +[**deleteResourceSlice**](ResourceV1Api.md#deleteResourceSlice) | **DELETE** /apis/resource.k8s.io/v1/resourceslices/{name} | +[**getAPIResources**](ResourceV1Api.md#getAPIResources) | **GET** /apis/resource.k8s.io/v1/ | +[**listDeviceClass**](ResourceV1Api.md#listDeviceClass) | **GET** /apis/resource.k8s.io/v1/deviceclasses | +[**listNamespacedResourceClaim**](ResourceV1Api.md#listNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims | +[**listNamespacedResourceClaimTemplate**](ResourceV1Api.md#listNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates | +[**listResourceClaimForAllNamespaces**](ResourceV1Api.md#listResourceClaimForAllNamespaces) | **GET** /apis/resource.k8s.io/v1/resourceclaims | +[**listResourceClaimTemplateForAllNamespaces**](ResourceV1Api.md#listResourceClaimTemplateForAllNamespaces) | **GET** /apis/resource.k8s.io/v1/resourceclaimtemplates | +[**listResourceSlice**](ResourceV1Api.md#listResourceSlice) | **GET** /apis/resource.k8s.io/v1/resourceslices | +[**patchDeviceClass**](ResourceV1Api.md#patchDeviceClass) | **PATCH** /apis/resource.k8s.io/v1/deviceclasses/{name} | +[**patchNamespacedResourceClaim**](ResourceV1Api.md#patchNamespacedResourceClaim) | **PATCH** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name} | +[**patchNamespacedResourceClaimStatus**](ResourceV1Api.md#patchNamespacedResourceClaimStatus) | **PATCH** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status | +[**patchNamespacedResourceClaimTemplate**](ResourceV1Api.md#patchNamespacedResourceClaimTemplate) | **PATCH** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name} | +[**patchResourceSlice**](ResourceV1Api.md#patchResourceSlice) | **PATCH** /apis/resource.k8s.io/v1/resourceslices/{name} | +[**readDeviceClass**](ResourceV1Api.md#readDeviceClass) | **GET** /apis/resource.k8s.io/v1/deviceclasses/{name} | +[**readNamespacedResourceClaim**](ResourceV1Api.md#readNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name} | +[**readNamespacedResourceClaimStatus**](ResourceV1Api.md#readNamespacedResourceClaimStatus) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status | +[**readNamespacedResourceClaimTemplate**](ResourceV1Api.md#readNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name} | +[**readResourceSlice**](ResourceV1Api.md#readResourceSlice) | **GET** /apis/resource.k8s.io/v1/resourceslices/{name} | +[**replaceDeviceClass**](ResourceV1Api.md#replaceDeviceClass) | **PUT** /apis/resource.k8s.io/v1/deviceclasses/{name} | +[**replaceNamespacedResourceClaim**](ResourceV1Api.md#replaceNamespacedResourceClaim) | **PUT** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name} | +[**replaceNamespacedResourceClaimStatus**](ResourceV1Api.md#replaceNamespacedResourceClaimStatus) | **PUT** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status | +[**replaceNamespacedResourceClaimTemplate**](ResourceV1Api.md#replaceNamespacedResourceClaimTemplate) | **PUT** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name} | +[**replaceResourceSlice**](ResourceV1Api.md#replaceResourceSlice) | **PUT** /apis/resource.k8s.io/v1/resourceslices/{name} | + + +# **createDeviceClass** +> V1DeviceClass createDeviceClass(body) + +create a DeviceClass + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiCreateDeviceClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiCreateDeviceClassRequest = { + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + config: [ + { + opaque: { + driver: "driver_example", + parameters: {}, + }, + }, + ], + extendedResourceName: "extendedResourceName_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.createDeviceClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeviceClass**| | + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1DeviceClass** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **createNamespacedResourceClaim** +> ResourceV1ResourceClaim createNamespacedResourceClaim(body) + +create a ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiCreateNamespacedResourceClaimRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiCreateNamespacedResourceClaimRequest = { + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + devices: { + config: [ + { + opaque: { + driver: "driver_example", + parameters: {}, + }, + requests: [ + "requests_example", + ], + }, + ], + constraints: [ + { + distinctAttribute: "distinctAttribute_example", + matchAttribute: "matchAttribute_example", + requests: [ + "requests_example", + ], + }, + ], + requests: [ + { + exactly: { + adminAccess: true, + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + firstAvailable: [ + { + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + name: "name_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + ], + name: "name_example", + }, + ], + }, + }, + status: { + allocation: { + allocationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + devices: { + config: [ + { + opaque: { + driver: "driver_example", + parameters: {}, + }, + requests: [ + "requests_example", + ], + source: "source_example", + }, + ], + results: [ + { + adminAccess: true, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + consumedCapacity: { + "key": "key_example", + }, + device: "device_example", + driver: "driver_example", + pool: "pool_example", + request: "request_example", + shareID: "shareID_example", + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + ], + }, + nodeSelector: { + nodeSelectorTerms: [ + { + matchExpressions: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + matchFields: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + }, + ], + }, + }, + devices: [ + { + conditions: [ + { + lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), + message: "message_example", + observedGeneration: 1, + reason: "reason_example", + status: "status_example", + type: "type_example", + }, + ], + data: {}, + device: "device_example", + driver: "driver_example", + networkData: { + hardwareAddress: "hardwareAddress_example", + interfaceName: "interfaceName_example", + ips: [ + "ips_example", + ], + }, + pool: "pool_example", + shareID: "shareID_example", + }, + ], + reservedFor: [ + { + apiGroup: "apiGroup_example", + name: "name_example", + resource: "resource_example", + uid: "uid_example", + }, + ], + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.createNamespacedResourceClaim(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **ResourceV1ResourceClaim**| | + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**ResourceV1ResourceClaim** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **createNamespacedResourceClaimTemplate** +> V1ResourceClaimTemplate createNamespacedResourceClaimTemplate(body) + +create a ResourceClaimTemplate + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiCreateNamespacedResourceClaimTemplateRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiCreateNamespacedResourceClaimTemplateRequest = { + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + devices: { + config: [ + { + opaque: { + driver: "driver_example", + parameters: {}, + }, + requests: [ + "requests_example", + ], + }, + ], + constraints: [ + { + distinctAttribute: "distinctAttribute_example", + matchAttribute: "matchAttribute_example", + requests: [ + "requests_example", + ], + }, + ], + requests: [ + { + exactly: { + adminAccess: true, + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + firstAvailable: [ + { + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + name: "name_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + ], + name: "name_example", + }, + ], + }, + }, + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.createNamespacedResourceClaimTemplate(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1ResourceClaimTemplate**| | + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1ResourceClaimTemplate** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **createResourceSlice** +> V1ResourceSlice createResourceSlice(body) + +create a ResourceSlice + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiCreateResourceSliceRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiCreateResourceSliceRequest = { + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + allNodes: true, + devices: [ + { + allNodes: true, + allowMultipleAllocations: true, + attributes: { + "key": { + bool: true, + _int: 1, + string: "string_example", + version: "version_example", + }, + }, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + bindsToNode: true, + capacity: { + "key": { + requestPolicy: { + _default: "_default_example", + validRange: { + max: "max_example", + min: "min_example", + step: "step_example", + }, + validValues: [ + "validValues_example", + ], + }, + value: "value_example", + }, + }, + consumesCounters: [ + { + counterSet: "counterSet_example", + counters: { + "key": { + value: "value_example", + }, + }, + }, + ], + name: "name_example", + nodeName: "nodeName_example", + nodeSelector: { + nodeSelectorTerms: [ + { + matchExpressions: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + matchFields: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + }, + ], + }, + taints: [ + { + effect: "effect_example", + key: "key_example", + timeAdded: new Date('1970-01-01T00:00:00.00Z'), + value: "value_example", + }, + ], + }, + ], + driver: "driver_example", + nodeName: "nodeName_example", + nodeSelector: { + nodeSelectorTerms: [ + { + matchExpressions: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + matchFields: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + }, + ], + }, + perDeviceNodeSelection: true, + pool: { + generation: 1, + name: "name_example", + resourceSliceCount: 1, + }, + sharedCounters: [ + { + counters: { + "key": { + value: "value_example", + }, + }, + name: "name_example", + }, + ], + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.createResourceSlice(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1ResourceSlice**| | + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1ResourceSlice** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteCollectionDeviceClass** +> V1Status deleteCollectionDeviceClass() + +delete collection of DeviceClass + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiDeleteCollectionDeviceClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiDeleteCollectionDeviceClassRequest = { + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteCollectionDeviceClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + + +### Return type + +**V1Status** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteCollectionNamespacedResourceClaim** +> V1Status deleteCollectionNamespacedResourceClaim() + +delete collection of ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiDeleteCollectionNamespacedResourceClaimRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiDeleteCollectionNamespacedResourceClaimRequest = { + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteCollectionNamespacedResourceClaim(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + + +### Return type + +**V1Status** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteCollectionNamespacedResourceClaimTemplate** +> V1Status deleteCollectionNamespacedResourceClaimTemplate() + +delete collection of ResourceClaimTemplate + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiDeleteCollectionNamespacedResourceClaimTemplateRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiDeleteCollectionNamespacedResourceClaimTemplateRequest = { + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteCollectionNamespacedResourceClaimTemplate(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + + +### Return type + +**V1Status** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteCollectionResourceSlice** +> V1Status deleteCollectionResourceSlice() + +delete collection of ResourceSlice + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiDeleteCollectionResourceSliceRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiDeleteCollectionResourceSliceRequest = { + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteCollectionResourceSlice(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + + +### Return type + +**V1Status** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteDeviceClass** +> V1DeviceClass deleteDeviceClass() + +delete a DeviceClass + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiDeleteDeviceClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiDeleteDeviceClassRequest = { + // name of the DeviceClass + name: "name_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteDeviceClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **name** | [**string**] | name of the DeviceClass | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + + +### Return type + +**V1DeviceClass** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteNamespacedResourceClaim** +> ResourceV1ResourceClaim deleteNamespacedResourceClaim() + +delete a ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiDeleteNamespacedResourceClaimRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiDeleteNamespacedResourceClaimRequest = { + // name of the ResourceClaim + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteNamespacedResourceClaim(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **name** | [**string**] | name of the ResourceClaim | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + + +### Return type + +**ResourceV1ResourceClaim** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteNamespacedResourceClaimTemplate** +> V1ResourceClaimTemplate deleteNamespacedResourceClaimTemplate() + +delete a ResourceClaimTemplate + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiDeleteNamespacedResourceClaimTemplateRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiDeleteNamespacedResourceClaimTemplateRequest = { + // name of the ResourceClaimTemplate + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteNamespacedResourceClaimTemplate(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **name** | [**string**] | name of the ResourceClaimTemplate | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + + +### Return type + +**V1ResourceClaimTemplate** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteResourceSlice** +> V1ResourceSlice deleteResourceSlice() + +delete a ResourceSlice + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiDeleteResourceSliceRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiDeleteResourceSliceRequest = { + // name of the ResourceSlice + name: "name_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteResourceSlice(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **name** | [**string**] | name of the ResourceSlice | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + + +### Return type + +**V1ResourceSlice** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **getAPIResources** +> V1APIResourceList getAPIResources() + +get available resources + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request = {}; + +const data = await apiInstance.getAPIResources(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters +This endpoint does not need any parameter. + + +### Return type + +**V1APIResourceList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listDeviceClass** +> V1DeviceClassList listDeviceClass() + +list or watch objects of kind DeviceClass + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiListDeviceClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiListDeviceClassRequest = { + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listDeviceClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1DeviceClassList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listNamespacedResourceClaim** +> V1ResourceClaimList listNamespacedResourceClaim() + +list or watch objects of kind ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiListNamespacedResourceClaimRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiListNamespacedResourceClaimRequest = { + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listNamespacedResourceClaim(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1ResourceClaimList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listNamespacedResourceClaimTemplate** +> V1ResourceClaimTemplateList listNamespacedResourceClaimTemplate() + +list or watch objects of kind ResourceClaimTemplate + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiListNamespacedResourceClaimTemplateRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiListNamespacedResourceClaimTemplateRequest = { + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listNamespacedResourceClaimTemplate(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1ResourceClaimTemplateList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listResourceClaimForAllNamespaces** +> V1ResourceClaimList listResourceClaimForAllNamespaces() + +list or watch objects of kind ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiListResourceClaimForAllNamespacesRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiListResourceClaimForAllNamespacesRequest = { + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listResourceClaimForAllNamespaces(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1ResourceClaimList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listResourceClaimTemplateForAllNamespaces** +> V1ResourceClaimTemplateList listResourceClaimTemplateForAllNamespaces() + +list or watch objects of kind ResourceClaimTemplate + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiListResourceClaimTemplateForAllNamespacesRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiListResourceClaimTemplateForAllNamespacesRequest = { + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listResourceClaimTemplateForAllNamespaces(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1ResourceClaimTemplateList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listResourceSlice** +> V1ResourceSliceList listResourceSlice() + +list or watch objects of kind ResourceSlice + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiListResourceSliceRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiListResourceSliceRequest = { + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listResourceSlice(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1ResourceSliceList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **patchDeviceClass** +> V1DeviceClass patchDeviceClass(body) + +partially update the specified DeviceClass + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiPatchDeviceClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiPatchDeviceClassRequest = { + // name of the DeviceClass + name: "name_example", + + body: {}, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", + // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + force: true, +}; + +const data = await apiInstance.patchDeviceClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **any**| | + **name** | [**string**] | name of the DeviceClass | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined + + +### Return type + +**V1DeviceClass** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **patchNamespacedResourceClaim** +> ResourceV1ResourceClaim patchNamespacedResourceClaim(body) + +partially update the specified ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiPatchNamespacedResourceClaimRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiPatchNamespacedResourceClaimRequest = { + // name of the ResourceClaim + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: {}, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", + // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + force: true, +}; + +const data = await apiInstance.patchNamespacedResourceClaim(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **any**| | + **name** | [**string**] | name of the ResourceClaim | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined + + +### Return type + +**ResourceV1ResourceClaim** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **patchNamespacedResourceClaimStatus** +> ResourceV1ResourceClaim patchNamespacedResourceClaimStatus(body) + +partially update status of the specified ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiPatchNamespacedResourceClaimStatusRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiPatchNamespacedResourceClaimStatusRequest = { + // name of the ResourceClaim + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: {}, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", + // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + force: true, +}; + +const data = await apiInstance.patchNamespacedResourceClaimStatus(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **any**| | + **name** | [**string**] | name of the ResourceClaim | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined + + +### Return type + +**ResourceV1ResourceClaim** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **patchNamespacedResourceClaimTemplate** +> V1ResourceClaimTemplate patchNamespacedResourceClaimTemplate(body) + +partially update the specified ResourceClaimTemplate + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiPatchNamespacedResourceClaimTemplateRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiPatchNamespacedResourceClaimTemplateRequest = { + // name of the ResourceClaimTemplate + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: {}, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", + // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + force: true, +}; + +const data = await apiInstance.patchNamespacedResourceClaimTemplate(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **any**| | + **name** | [**string**] | name of the ResourceClaimTemplate | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined + + +### Return type + +**V1ResourceClaimTemplate** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **patchResourceSlice** +> V1ResourceSlice patchResourceSlice(body) + +partially update the specified ResourceSlice + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiPatchResourceSliceRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiPatchResourceSliceRequest = { + // name of the ResourceSlice + name: "name_example", + + body: {}, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", + // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + force: true, +}; + +const data = await apiInstance.patchResourceSlice(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **any**| | + **name** | [**string**] | name of the ResourceSlice | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined + + +### Return type + +**V1ResourceSlice** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **readDeviceClass** +> V1DeviceClass readDeviceClass() + +read the specified DeviceClass + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiReadDeviceClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiReadDeviceClassRequest = { + // name of the DeviceClass + name: "name_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", +}; + +const data = await apiInstance.readDeviceClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | [**string**] | name of the DeviceClass | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + + +### Return type + +**V1DeviceClass** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **readNamespacedResourceClaim** +> ResourceV1ResourceClaim readNamespacedResourceClaim() + +read the specified ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiReadNamespacedResourceClaimRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiReadNamespacedResourceClaimRequest = { + // name of the ResourceClaim + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", +}; + +const data = await apiInstance.readNamespacedResourceClaim(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | [**string**] | name of the ResourceClaim | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + + +### Return type + +**ResourceV1ResourceClaim** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **readNamespacedResourceClaimStatus** +> ResourceV1ResourceClaim readNamespacedResourceClaimStatus() + +read status of the specified ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiReadNamespacedResourceClaimStatusRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiReadNamespacedResourceClaimStatusRequest = { + // name of the ResourceClaim + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", +}; + +const data = await apiInstance.readNamespacedResourceClaimStatus(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | [**string**] | name of the ResourceClaim | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + + +### Return type + +**ResourceV1ResourceClaim** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **readNamespacedResourceClaimTemplate** +> V1ResourceClaimTemplate readNamespacedResourceClaimTemplate() + +read the specified ResourceClaimTemplate + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiReadNamespacedResourceClaimTemplateRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiReadNamespacedResourceClaimTemplateRequest = { + // name of the ResourceClaimTemplate + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", +}; + +const data = await apiInstance.readNamespacedResourceClaimTemplate(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | [**string**] | name of the ResourceClaimTemplate | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + + +### Return type + +**V1ResourceClaimTemplate** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **readResourceSlice** +> V1ResourceSlice readResourceSlice() + +read the specified ResourceSlice + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiReadResourceSliceRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiReadResourceSliceRequest = { + // name of the ResourceSlice + name: "name_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", +}; + +const data = await apiInstance.readResourceSlice(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | [**string**] | name of the ResourceSlice | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + + +### Return type + +**V1ResourceSlice** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **replaceDeviceClass** +> V1DeviceClass replaceDeviceClass(body) + +replace the specified DeviceClass + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiReplaceDeviceClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiReplaceDeviceClassRequest = { + // name of the DeviceClass + name: "name_example", + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + config: [ + { + opaque: { + driver: "driver_example", + parameters: {}, + }, + }, + ], + extendedResourceName: "extendedResourceName_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.replaceDeviceClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeviceClass**| | + **name** | [**string**] | name of the DeviceClass | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1DeviceClass** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **replaceNamespacedResourceClaim** +> ResourceV1ResourceClaim replaceNamespacedResourceClaim(body) + +replace the specified ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiReplaceNamespacedResourceClaimRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiReplaceNamespacedResourceClaimRequest = { + // name of the ResourceClaim + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + devices: { + config: [ + { + opaque: { + driver: "driver_example", + parameters: {}, + }, + requests: [ + "requests_example", + ], + }, + ], + constraints: [ + { + distinctAttribute: "distinctAttribute_example", + matchAttribute: "matchAttribute_example", + requests: [ + "requests_example", + ], + }, + ], + requests: [ + { + exactly: { + adminAccess: true, + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + firstAvailable: [ + { + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + name: "name_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + ], + name: "name_example", + }, + ], + }, + }, + status: { + allocation: { + allocationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + devices: { + config: [ + { + opaque: { + driver: "driver_example", + parameters: {}, + }, + requests: [ + "requests_example", + ], + source: "source_example", + }, + ], + results: [ + { + adminAccess: true, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + consumedCapacity: { + "key": "key_example", + }, + device: "device_example", + driver: "driver_example", + pool: "pool_example", + request: "request_example", + shareID: "shareID_example", + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + ], + }, + nodeSelector: { + nodeSelectorTerms: [ + { + matchExpressions: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + matchFields: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + }, + ], + }, + }, + devices: [ + { + conditions: [ + { + lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), + message: "message_example", + observedGeneration: 1, + reason: "reason_example", + status: "status_example", + type: "type_example", + }, + ], + data: {}, + device: "device_example", + driver: "driver_example", + networkData: { + hardwareAddress: "hardwareAddress_example", + interfaceName: "interfaceName_example", + ips: [ + "ips_example", + ], + }, + pool: "pool_example", + shareID: "shareID_example", + }, + ], + reservedFor: [ + { + apiGroup: "apiGroup_example", + name: "name_example", + resource: "resource_example", + uid: "uid_example", + }, + ], + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.replaceNamespacedResourceClaim(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **ResourceV1ResourceClaim**| | + **name** | [**string**] | name of the ResourceClaim | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**ResourceV1ResourceClaim** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **replaceNamespacedResourceClaimStatus** +> ResourceV1ResourceClaim replaceNamespacedResourceClaimStatus(body) + +replace status of the specified ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiReplaceNamespacedResourceClaimStatusRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiReplaceNamespacedResourceClaimStatusRequest = { + // name of the ResourceClaim + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + devices: { + config: [ + { + opaque: { + driver: "driver_example", + parameters: {}, + }, + requests: [ + "requests_example", + ], + }, + ], + constraints: [ + { + distinctAttribute: "distinctAttribute_example", + matchAttribute: "matchAttribute_example", + requests: [ + "requests_example", + ], + }, + ], + requests: [ + { + exactly: { + adminAccess: true, + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + firstAvailable: [ + { + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + name: "name_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + ], + name: "name_example", + }, + ], + }, + }, + status: { + allocation: { + allocationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + devices: { + config: [ + { + opaque: { + driver: "driver_example", + parameters: {}, + }, + requests: [ + "requests_example", + ], + source: "source_example", + }, + ], + results: [ + { + adminAccess: true, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + consumedCapacity: { + "key": "key_example", + }, + device: "device_example", + driver: "driver_example", + pool: "pool_example", + request: "request_example", + shareID: "shareID_example", + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + ], + }, + nodeSelector: { + nodeSelectorTerms: [ + { + matchExpressions: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + matchFields: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + }, + ], + }, + }, + devices: [ + { + conditions: [ + { + lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), + message: "message_example", + observedGeneration: 1, + reason: "reason_example", + status: "status_example", + type: "type_example", + }, + ], + data: {}, + device: "device_example", + driver: "driver_example", + networkData: { + hardwareAddress: "hardwareAddress_example", + interfaceName: "interfaceName_example", + ips: [ + "ips_example", + ], + }, + pool: "pool_example", + shareID: "shareID_example", + }, + ], + reservedFor: [ + { + apiGroup: "apiGroup_example", + name: "name_example", + resource: "resource_example", + uid: "uid_example", + }, + ], + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.replaceNamespacedResourceClaimStatus(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **ResourceV1ResourceClaim**| | + **name** | [**string**] | name of the ResourceClaim | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**ResourceV1ResourceClaim** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **replaceNamespacedResourceClaimTemplate** +> V1ResourceClaimTemplate replaceNamespacedResourceClaimTemplate(body) + +replace the specified ResourceClaimTemplate + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiReplaceNamespacedResourceClaimTemplateRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiReplaceNamespacedResourceClaimTemplateRequest = { + // name of the ResourceClaimTemplate + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + devices: { + config: [ + { + opaque: { + driver: "driver_example", + parameters: {}, + }, + requests: [ + "requests_example", + ], + }, + ], + constraints: [ + { + distinctAttribute: "distinctAttribute_example", + matchAttribute: "matchAttribute_example", + requests: [ + "requests_example", + ], + }, + ], + requests: [ + { + exactly: { + adminAccess: true, + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + firstAvailable: [ + { + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + name: "name_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + ], + name: "name_example", + }, + ], + }, + }, + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.replaceNamespacedResourceClaimTemplate(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1ResourceClaimTemplate**| | + **name** | [**string**] | name of the ResourceClaimTemplate | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1ResourceClaimTemplate** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **replaceResourceSlice** +> V1ResourceSlice replaceResourceSlice(body) + +replace the specified ResourceSlice + +### Example + + +```typescript +import { createConfiguration, ResourceV1Api } from ''; +import type { ResourceV1ApiReplaceResourceSliceRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1Api(configuration); + +const request: ResourceV1ApiReplaceResourceSliceRequest = { + // name of the ResourceSlice + name: "name_example", + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + allNodes: true, + devices: [ + { + allNodes: true, + allowMultipleAllocations: true, + attributes: { + "key": { + bool: true, + _int: 1, + string: "string_example", + version: "version_example", + }, + }, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + bindsToNode: true, + capacity: { + "key": { + requestPolicy: { + _default: "_default_example", + validRange: { + max: "max_example", + min: "min_example", + step: "step_example", + }, + validValues: [ + "validValues_example", + ], + }, + value: "value_example", + }, + }, + consumesCounters: [ + { + counterSet: "counterSet_example", + counters: { + "key": { + value: "value_example", + }, + }, + }, + ], + name: "name_example", + nodeName: "nodeName_example", + nodeSelector: { + nodeSelectorTerms: [ + { + matchExpressions: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + matchFields: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + }, + ], + }, + taints: [ + { + effect: "effect_example", + key: "key_example", + timeAdded: new Date('1970-01-01T00:00:00.00Z'), + value: "value_example", + }, + ], + }, + ], + driver: "driver_example", + nodeName: "nodeName_example", + nodeSelector: { + nodeSelectorTerms: [ + { + matchExpressions: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + matchFields: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + }, + ], + }, + perDeviceNodeSelection: true, + pool: { + generation: 1, + name: "name_example", + resourceSliceCount: 1, + }, + sharedCounters: [ + { + counters: { + "key": { + value: "value_example", + }, + }, + name: "name_example", + }, + ], + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.replaceResourceSlice(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1ResourceSlice**| | + **name** | [**string**] | name of the ResourceSlice | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1ResourceSlice** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + + diff --git a/src/gen/ResourceV1alpha3Api.md b/src/gen/ResourceV1alpha3Api.md index cd7c948c67..9412914796 100644 --- a/src/gen/ResourceV1alpha3Api.md +++ b/src/gen/ResourceV1alpha3Api.md @@ -4,58 +4,32 @@ All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**createDeviceClass**](ResourceV1alpha3Api.md#createDeviceClass) | **POST** /apis/resource.k8s.io/v1alpha3/deviceclasses | -[**createNamespacedResourceClaim**](ResourceV1alpha3Api.md#createNamespacedResourceClaim) | **POST** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims | -[**createNamespacedResourceClaimTemplate**](ResourceV1alpha3Api.md#createNamespacedResourceClaimTemplate) | **POST** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates | -[**createResourceSlice**](ResourceV1alpha3Api.md#createResourceSlice) | **POST** /apis/resource.k8s.io/v1alpha3/resourceslices | -[**deleteCollectionDeviceClass**](ResourceV1alpha3Api.md#deleteCollectionDeviceClass) | **DELETE** /apis/resource.k8s.io/v1alpha3/deviceclasses | -[**deleteCollectionNamespacedResourceClaim**](ResourceV1alpha3Api.md#deleteCollectionNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims | -[**deleteCollectionNamespacedResourceClaimTemplate**](ResourceV1alpha3Api.md#deleteCollectionNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates | -[**deleteCollectionResourceSlice**](ResourceV1alpha3Api.md#deleteCollectionResourceSlice) | **DELETE** /apis/resource.k8s.io/v1alpha3/resourceslices | -[**deleteDeviceClass**](ResourceV1alpha3Api.md#deleteDeviceClass) | **DELETE** /apis/resource.k8s.io/v1alpha3/deviceclasses/{name} | -[**deleteNamespacedResourceClaim**](ResourceV1alpha3Api.md#deleteNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name} | -[**deleteNamespacedResourceClaimTemplate**](ResourceV1alpha3Api.md#deleteNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name} | -[**deleteResourceSlice**](ResourceV1alpha3Api.md#deleteResourceSlice) | **DELETE** /apis/resource.k8s.io/v1alpha3/resourceslices/{name} | +[**createDeviceTaintRule**](ResourceV1alpha3Api.md#createDeviceTaintRule) | **POST** /apis/resource.k8s.io/v1alpha3/devicetaintrules | +[**deleteCollectionDeviceTaintRule**](ResourceV1alpha3Api.md#deleteCollectionDeviceTaintRule) | **DELETE** /apis/resource.k8s.io/v1alpha3/devicetaintrules | +[**deleteDeviceTaintRule**](ResourceV1alpha3Api.md#deleteDeviceTaintRule) | **DELETE** /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name} | [**getAPIResources**](ResourceV1alpha3Api.md#getAPIResources) | **GET** /apis/resource.k8s.io/v1alpha3/ | -[**listDeviceClass**](ResourceV1alpha3Api.md#listDeviceClass) | **GET** /apis/resource.k8s.io/v1alpha3/deviceclasses | -[**listNamespacedResourceClaim**](ResourceV1alpha3Api.md#listNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims | -[**listNamespacedResourceClaimTemplate**](ResourceV1alpha3Api.md#listNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates | -[**listResourceClaimForAllNamespaces**](ResourceV1alpha3Api.md#listResourceClaimForAllNamespaces) | **GET** /apis/resource.k8s.io/v1alpha3/resourceclaims | -[**listResourceClaimTemplateForAllNamespaces**](ResourceV1alpha3Api.md#listResourceClaimTemplateForAllNamespaces) | **GET** /apis/resource.k8s.io/v1alpha3/resourceclaimtemplates | -[**listResourceSlice**](ResourceV1alpha3Api.md#listResourceSlice) | **GET** /apis/resource.k8s.io/v1alpha3/resourceslices | -[**patchDeviceClass**](ResourceV1alpha3Api.md#patchDeviceClass) | **PATCH** /apis/resource.k8s.io/v1alpha3/deviceclasses/{name} | -[**patchNamespacedResourceClaim**](ResourceV1alpha3Api.md#patchNamespacedResourceClaim) | **PATCH** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name} | -[**patchNamespacedResourceClaimStatus**](ResourceV1alpha3Api.md#patchNamespacedResourceClaimStatus) | **PATCH** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status | -[**patchNamespacedResourceClaimTemplate**](ResourceV1alpha3Api.md#patchNamespacedResourceClaimTemplate) | **PATCH** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name} | -[**patchResourceSlice**](ResourceV1alpha3Api.md#patchResourceSlice) | **PATCH** /apis/resource.k8s.io/v1alpha3/resourceslices/{name} | -[**readDeviceClass**](ResourceV1alpha3Api.md#readDeviceClass) | **GET** /apis/resource.k8s.io/v1alpha3/deviceclasses/{name} | -[**readNamespacedResourceClaim**](ResourceV1alpha3Api.md#readNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name} | -[**readNamespacedResourceClaimStatus**](ResourceV1alpha3Api.md#readNamespacedResourceClaimStatus) | **GET** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status | -[**readNamespacedResourceClaimTemplate**](ResourceV1alpha3Api.md#readNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name} | -[**readResourceSlice**](ResourceV1alpha3Api.md#readResourceSlice) | **GET** /apis/resource.k8s.io/v1alpha3/resourceslices/{name} | -[**replaceDeviceClass**](ResourceV1alpha3Api.md#replaceDeviceClass) | **PUT** /apis/resource.k8s.io/v1alpha3/deviceclasses/{name} | -[**replaceNamespacedResourceClaim**](ResourceV1alpha3Api.md#replaceNamespacedResourceClaim) | **PUT** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name} | -[**replaceNamespacedResourceClaimStatus**](ResourceV1alpha3Api.md#replaceNamespacedResourceClaimStatus) | **PUT** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status | -[**replaceNamespacedResourceClaimTemplate**](ResourceV1alpha3Api.md#replaceNamespacedResourceClaimTemplate) | **PUT** /apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name} | -[**replaceResourceSlice**](ResourceV1alpha3Api.md#replaceResourceSlice) | **PUT** /apis/resource.k8s.io/v1alpha3/resourceslices/{name} | - - -# **createDeviceClass** -> V1alpha3DeviceClass createDeviceClass(body) - -create a DeviceClass +[**listDeviceTaintRule**](ResourceV1alpha3Api.md#listDeviceTaintRule) | **GET** /apis/resource.k8s.io/v1alpha3/devicetaintrules | +[**patchDeviceTaintRule**](ResourceV1alpha3Api.md#patchDeviceTaintRule) | **PATCH** /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name} | +[**readDeviceTaintRule**](ResourceV1alpha3Api.md#readDeviceTaintRule) | **GET** /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name} | +[**replaceDeviceTaintRule**](ResourceV1alpha3Api.md#replaceDeviceTaintRule) | **PUT** /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name} | + + +# **createDeviceTaintRule** +> V1alpha3DeviceTaintRule createDeviceTaintRule(body) + +create a DeviceTaintRule ### Example ```typescript import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiCreateDeviceClassRequest } from ''; +import type { ResourceV1alpha3ApiCreateDeviceTaintRuleRequest } from ''; const configuration = createConfiguration(); const apiInstance = new ResourceV1alpha3Api(configuration); -const request: ResourceV1alpha3ApiCreateDeviceClassRequest = { +const request: ResourceV1alpha3ApiCreateDeviceTaintRuleRequest = { body: { apiVersion: "apiVersion_example", @@ -103,21 +77,25 @@ const request: ResourceV1alpha3ApiCreateDeviceClassRequest = { uid: "uid_example", }, spec: { - config: [ - { - opaque: { - driver: "driver_example", - parameters: {}, - }, - }, - ], - selectors: [ - { - cel: { - expression: "expression_example", + deviceSelector: { + device: "device_example", + deviceClassName: "deviceClassName_example", + driver: "driver_example", + pool: "pool_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, }, - }, - ], + ], + }, + taint: { + effect: "effect_example", + key: "key_example", + timeAdded: new Date('1970-01-01T00:00:00.00Z'), + value: "value_example", + }, }, }, // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) @@ -130,7 +108,7 @@ const request: ResourceV1alpha3ApiCreateDeviceClassRequest = { fieldValidation: "fieldValidation_example", }; -const data = await apiInstance.createDeviceClass(request); +const data = await apiInstance.createDeviceTaintRule(request); console.log('API called successfully. Returned data:', data); ``` @@ -139,7 +117,7 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **V1alpha3DeviceClass**| | + **body** | **V1alpha3DeviceTaintRule**| | **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined @@ -148,7 +126,7 @@ Name | Type | Description | Notes ### Return type -**V1alpha3DeviceClass** +**V1alpha3DeviceTaintRule** ### Authorization @@ -170,205 +148,69 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **createNamespacedResourceClaim** -> V1alpha3ResourceClaim createNamespacedResourceClaim(body) +# **deleteCollectionDeviceTaintRule** +> V1Status deleteCollectionDeviceTaintRule() -create a ResourceClaim +delete collection of DeviceTaintRule ### Example ```typescript import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiCreateNamespacedResourceClaimRequest } from ''; +import type { ResourceV1alpha3ApiDeleteCollectionDeviceTaintRuleRequest } from ''; const configuration = createConfiguration(); const apiInstance = new ResourceV1alpha3Api(configuration); -const request: ResourceV1alpha3ApiCreateNamespacedResourceClaimRequest = { - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", +const request: ResourceV1alpha3ApiDeleteCollectionDeviceTaintRuleRequest = { + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, body: { apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, kind: "kind_example", - metadata: { - annotations: { - "key": "key_example", - }, - creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), - deletionGracePeriodSeconds: 1, - deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), - finalizers: [ - "finalizers_example", - ], - generateName: "generateName_example", - generation: 1, - labels: { - "key": "key_example", - }, - managedFields: [ - { - apiVersion: "apiVersion_example", - fieldsType: "fieldsType_example", - fieldsV1: {}, - manager: "manager_example", - operation: "operation_example", - subresource: "subresource_example", - time: new Date('1970-01-01T00:00:00.00Z'), - }, - ], - name: "name_example", - namespace: "namespace_example", - ownerReferences: [ - { - apiVersion: "apiVersion_example", - blockOwnerDeletion: true, - controller: true, - kind: "kind_example", - name: "name_example", - uid: "uid_example", - }, - ], + orphanDependents: true, + preconditions: { resourceVersion: "resourceVersion_example", - selfLink: "selfLink_example", uid: "uid_example", }, - spec: { - devices: { - config: [ - { - opaque: { - driver: "driver_example", - parameters: {}, - }, - requests: [ - "requests_example", - ], - }, - ], - constraints: [ - { - matchAttribute: "matchAttribute_example", - requests: [ - "requests_example", - ], - }, - ], - requests: [ - { - adminAccess: true, - allocationMode: "allocationMode_example", - count: 1, - deviceClassName: "deviceClassName_example", - name: "name_example", - selectors: [ - { - cel: { - expression: "expression_example", - }, - }, - ], - }, - ], - }, - }, - status: { - allocation: { - devices: { - config: [ - { - opaque: { - driver: "driver_example", - parameters: {}, - }, - requests: [ - "requests_example", - ], - source: "source_example", - }, - ], - results: [ - { - adminAccess: true, - device: "device_example", - driver: "driver_example", - pool: "pool_example", - request: "request_example", - }, - ], - }, - nodeSelector: { - nodeSelectorTerms: [ - { - matchExpressions: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], - matchFields: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], - }, - ], - }, - }, - devices: [ - { - conditions: [ - { - lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), - message: "message_example", - observedGeneration: 1, - reason: "reason_example", - status: "status_example", - type: "type_example", - }, - ], - data: {}, - device: "device_example", - driver: "driver_example", - networkData: { - hardwareAddress: "hardwareAddress_example", - interfaceName: "interfaceName_example", - ips: [ - "ips_example", - ], - }, - pool: "pool_example", - }, - ], - reservedFor: [ - { - apiGroup: "apiGroup_example", - name: "name_example", - resource: "resource_example", - uid: "uid_example", - }, - ], - }, + propagationPolicy: "propagationPolicy_example", }, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", }; -const data = await apiInstance.createNamespacedResourceClaim(request); +const data = await apiInstance.deleteCollectionDeviceTaintRule(request); console.log('API called successfully. Returned data:', data); ``` @@ -377,17 +219,26 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **V1alpha3ResourceClaim**| | - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **body** | **V1DeleteOptions**| | **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined ### Return type -**V1alpha3ResourceClaim** +**V1Status** ### Authorization @@ -403,171 +254,59 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **createNamespacedResourceClaimTemplate** -> V1alpha3ResourceClaimTemplate createNamespacedResourceClaimTemplate(body) +# **deleteDeviceTaintRule** +> V1alpha3DeviceTaintRule deleteDeviceTaintRule() -create a ResourceClaimTemplate +delete a DeviceTaintRule ### Example ```typescript import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiCreateNamespacedResourceClaimTemplateRequest } from ''; +import type { ResourceV1alpha3ApiDeleteDeviceTaintRuleRequest } from ''; const configuration = createConfiguration(); const apiInstance = new ResourceV1alpha3Api(configuration); -const request: ResourceV1alpha3ApiCreateNamespacedResourceClaimTemplateRequest = { - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", +const request: ResourceV1alpha3ApiDeleteDeviceTaintRuleRequest = { + // name of the DeviceTaintRule + name: "name_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", body: { apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, kind: "kind_example", - metadata: { - annotations: { - "key": "key_example", - }, - creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), - deletionGracePeriodSeconds: 1, - deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), - finalizers: [ - "finalizers_example", - ], - generateName: "generateName_example", - generation: 1, - labels: { - "key": "key_example", - }, - managedFields: [ - { - apiVersion: "apiVersion_example", - fieldsType: "fieldsType_example", - fieldsV1: {}, - manager: "manager_example", - operation: "operation_example", - subresource: "subresource_example", - time: new Date('1970-01-01T00:00:00.00Z'), - }, - ], - name: "name_example", - namespace: "namespace_example", - ownerReferences: [ - { - apiVersion: "apiVersion_example", - blockOwnerDeletion: true, - controller: true, - kind: "kind_example", - name: "name_example", - uid: "uid_example", - }, - ], + orphanDependents: true, + preconditions: { resourceVersion: "resourceVersion_example", - selfLink: "selfLink_example", uid: "uid_example", }, - spec: { - metadata: { - annotations: { - "key": "key_example", - }, - creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), - deletionGracePeriodSeconds: 1, - deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), - finalizers: [ - "finalizers_example", - ], - generateName: "generateName_example", - generation: 1, - labels: { - "key": "key_example", - }, - managedFields: [ - { - apiVersion: "apiVersion_example", - fieldsType: "fieldsType_example", - fieldsV1: {}, - manager: "manager_example", - operation: "operation_example", - subresource: "subresource_example", - time: new Date('1970-01-01T00:00:00.00Z'), - }, - ], - name: "name_example", - namespace: "namespace_example", - ownerReferences: [ - { - apiVersion: "apiVersion_example", - blockOwnerDeletion: true, - controller: true, - kind: "kind_example", - name: "name_example", - uid: "uid_example", - }, - ], - resourceVersion: "resourceVersion_example", - selfLink: "selfLink_example", - uid: "uid_example", - }, - spec: { - devices: { - config: [ - { - opaque: { - driver: "driver_example", - parameters: {}, - }, - requests: [ - "requests_example", - ], - }, - ], - constraints: [ - { - matchAttribute: "matchAttribute_example", - requests: [ - "requests_example", - ], - }, - ], - requests: [ - { - adminAccess: true, - allocationMode: "allocationMode_example", - count: 1, - deviceClassName: "deviceClassName_example", - name: "name_example", - selectors: [ - { - cel: { - expression: "expression_example", - }, - }, - ], - }, - ], - }, - }, - }, + propagationPolicy: "propagationPolicy_example", }, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", }; -const data = await apiInstance.createNamespacedResourceClaimTemplate(request); +const data = await apiInstance.deleteDeviceTaintRule(request); console.log('API called successfully. Returned data:', data); ``` @@ -576,17 +315,19 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **V1alpha3ResourceClaimTemplate**| | - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **body** | **V1DeleteOptions**| | + **name** | [**string**] | name of the DeviceTaintRule | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined ### Return type -**V1alpha3ResourceClaimTemplate** +**V1alpha3DeviceTaintRule** ### Authorization @@ -602,156 +343,39 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**201** | Created | - | **202** | Accepted | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **createResourceSlice** -> V1alpha3ResourceSlice createResourceSlice(body) +# **getAPIResources** +> V1APIResourceList getAPIResources() -create a ResourceSlice +get available resources ### Example ```typescript import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiCreateResourceSliceRequest } from ''; const configuration = createConfiguration(); const apiInstance = new ResourceV1alpha3Api(configuration); -const request: ResourceV1alpha3ApiCreateResourceSliceRequest = { - - body: { - apiVersion: "apiVersion_example", - kind: "kind_example", - metadata: { - annotations: { - "key": "key_example", - }, - creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), - deletionGracePeriodSeconds: 1, - deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), - finalizers: [ - "finalizers_example", - ], - generateName: "generateName_example", - generation: 1, - labels: { - "key": "key_example", - }, - managedFields: [ - { - apiVersion: "apiVersion_example", - fieldsType: "fieldsType_example", - fieldsV1: {}, - manager: "manager_example", - operation: "operation_example", - subresource: "subresource_example", - time: new Date('1970-01-01T00:00:00.00Z'), - }, - ], - name: "name_example", - namespace: "namespace_example", - ownerReferences: [ - { - apiVersion: "apiVersion_example", - blockOwnerDeletion: true, - controller: true, - kind: "kind_example", - name: "name_example", - uid: "uid_example", - }, - ], - resourceVersion: "resourceVersion_example", - selfLink: "selfLink_example", - uid: "uid_example", - }, - spec: { - allNodes: true, - devices: [ - { - basic: { - attributes: { - "key": { - bool: true, - _int: 1, - string: "string_example", - version: "version_example", - }, - }, - capacity: { - "key": "key_example", - }, - }, - name: "name_example", - }, - ], - driver: "driver_example", - nodeName: "nodeName_example", - nodeSelector: { - nodeSelectorTerms: [ - { - matchExpressions: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], - matchFields: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], - }, - ], - }, - pool: { - generation: 1, - name: "name_example", - resourceSliceCount: 1, - }, - }, - }, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", -}; +const request = {}; -const data = await apiInstance.createResourceSlice(request); +const data = await apiInstance.getAPIResources(request); console.log('API called successfully. Returned data:', data); ``` ### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **V1alpha3ResourceSlice**| | - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined +This endpoint does not need any parameter. ### Return type -**V1alpha3ResourceSlice** +**V1APIResourceList** ### Authorization @@ -767,48 +391,38 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **deleteCollectionDeviceClass** -> V1Status deleteCollectionDeviceClass() +# **listDeviceTaintRule** +> V1alpha3DeviceTaintRuleList listDeviceTaintRule() -delete collection of DeviceClass +list or watch objects of kind DeviceTaintRule ### Example ```typescript import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiDeleteCollectionDeviceClassRequest } from ''; +import type { ResourceV1alpha3ApiListDeviceTaintRuleRequest } from ''; const configuration = createConfiguration(); const apiInstance = new ResourceV1alpha3Api(configuration); -const request: ResourceV1alpha3ApiDeleteCollectionDeviceClassRequest = { +const request: ResourceV1alpha3ApiListDeviceTaintRuleRequest = { // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) _continue: "continue_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) fieldSelector: "fieldSelector_example", - // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - gracePeriodSeconds: 1, - // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - ignoreStoreReadErrorWithClusterBreakingPotential: true, // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) labelSelector: "labelSelector_example", // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) limit: 1, - // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - orphanDependents: true, - // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) - propagationPolicy: "propagationPolicy_example", // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) resourceVersion: "resourceVersion_example", // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) @@ -817,25 +431,11 @@ const request: ResourceV1alpha3ApiDeleteCollectionDeviceClassRequest = { sendInitialEvents: true, // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) timeoutSeconds: 1, - - body: { - apiVersion: "apiVersion_example", - dryRun: [ - "dryRun_example", - ], - gracePeriodSeconds: 1, - ignoreStoreReadErrorWithClusterBreakingPotential: true, - kind: "kind_example", - orphanDependents: true, - preconditions: { - resourceVersion: "resourceVersion_example", - uid: "uid_example", - }, - propagationPolicy: "propagationPolicy_example", - }, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, }; -const data = await apiInstance.deleteCollectionDeviceClass(request); +const data = await apiInstance.listDeviceTaintRule(request); console.log('API called successfully. Returned data:', data); ``` @@ -844,26 +444,22 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **V1DeleteOptions**| | **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined - **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined - **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined - **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined - **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined ### Return type -**V1Status** +**V1alpha3DeviceTaintRuleList** ### Authorization @@ -872,7 +468,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details @@ -883,71 +479,39 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **deleteCollectionNamespacedResourceClaim** -> V1Status deleteCollectionNamespacedResourceClaim() +# **patchDeviceTaintRule** +> V1alpha3DeviceTaintRule patchDeviceTaintRule(body) -delete collection of ResourceClaim +partially update the specified DeviceTaintRule ### Example ```typescript import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiDeleteCollectionNamespacedResourceClaimRequest } from ''; +import type { ResourceV1alpha3ApiPatchDeviceTaintRuleRequest } from ''; const configuration = createConfiguration(); const apiInstance = new ResourceV1alpha3Api(configuration); -const request: ResourceV1alpha3ApiDeleteCollectionNamespacedResourceClaimRequest = { - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", +const request: ResourceV1alpha3ApiPatchDeviceTaintRuleRequest = { + // name of the DeviceTaintRule + name: "name_example", + + body: {}, // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", - // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - _continue: "continue_example", // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) dryRun: "dryRun_example", - // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - fieldSelector: "fieldSelector_example", - // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - gracePeriodSeconds: 1, - // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - ignoreStoreReadErrorWithClusterBreakingPotential: true, - // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - labelSelector: "labelSelector_example", - // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - limit: 1, - // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - orphanDependents: true, - // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) - propagationPolicy: "propagationPolicy_example", - // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersion: "resourceVersion_example", - // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersionMatch: "resourceVersionMatch_example", - // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - sendInitialEvents: true, - // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - timeoutSeconds: 1, - - body: { - apiVersion: "apiVersion_example", - dryRun: [ - "dryRun_example", - ], - gracePeriodSeconds: 1, - ignoreStoreReadErrorWithClusterBreakingPotential: true, - kind: "kind_example", - orphanDependents: true, - preconditions: { - resourceVersion: "resourceVersion_example", - uid: "uid_example", - }, - propagationPolicy: "propagationPolicy_example", - }, + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", + // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + force: true, }; -const data = await apiInstance.deleteCollectionNamespacedResourceClaim(request); +const data = await apiInstance.patchDeviceTaintRule(request); console.log('API called successfully. Returned data:', data); ``` @@ -956,27 +520,18 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **V1DeleteOptions**| | - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **body** | **any**| | + **name** | [**string**] | name of the DeviceTaintRule | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined - **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined - **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined - **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined - **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined - **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined - **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined - **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined - **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined ### Return type -**V1Status** +**V1alpha3DeviceTaintRule** ### Authorization @@ -984,7 +539,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor @@ -992,75 +547,34 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**201** | Created | - | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **deleteCollectionNamespacedResourceClaimTemplate** -> V1Status deleteCollectionNamespacedResourceClaimTemplate() +# **readDeviceTaintRule** +> V1alpha3DeviceTaintRule readDeviceTaintRule() -delete collection of ResourceClaimTemplate +read the specified DeviceTaintRule ### Example ```typescript import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiDeleteCollectionNamespacedResourceClaimTemplateRequest } from ''; +import type { ResourceV1alpha3ApiReadDeviceTaintRuleRequest } from ''; const configuration = createConfiguration(); const apiInstance = new ResourceV1alpha3Api(configuration); -const request: ResourceV1alpha3ApiDeleteCollectionNamespacedResourceClaimTemplateRequest = { - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", +const request: ResourceV1alpha3ApiReadDeviceTaintRuleRequest = { + // name of the DeviceTaintRule + name: "name_example", // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", - // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - _continue: "continue_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - fieldSelector: "fieldSelector_example", - // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - gracePeriodSeconds: 1, - // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - ignoreStoreReadErrorWithClusterBreakingPotential: true, - // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - labelSelector: "labelSelector_example", - // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - limit: 1, - // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - orphanDependents: true, - // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) - propagationPolicy: "propagationPolicy_example", - // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersion: "resourceVersion_example", - // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersionMatch: "resourceVersionMatch_example", - // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - sendInitialEvents: true, - // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - timeoutSeconds: 1, - - body: { - apiVersion: "apiVersion_example", - dryRun: [ - "dryRun_example", - ], - gracePeriodSeconds: 1, - ignoreStoreReadErrorWithClusterBreakingPotential: true, - kind: "kind_example", - orphanDependents: true, - preconditions: { - resourceVersion: "resourceVersion_example", - uid: "uid_example", - }, - propagationPolicy: "propagationPolicy_example", - }, }; -const data = await apiInstance.deleteCollectionNamespacedResourceClaimTemplate(request); +const data = await apiInstance.readDeviceTaintRule(request); console.log('API called successfully. Returned data:', data); ``` @@ -1069,27 +583,13 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **V1DeleteOptions**| | - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **name** | [**string**] | name of the DeviceTaintRule | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined - **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined - **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined - **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined - **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined - **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined - **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined - **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined - **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined ### Return type -**V1Status** +**V1alpha3DeviceTaintRule** ### Authorization @@ -1109,2341 +609,24 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **deleteCollectionResourceSlice** -> V1Status deleteCollectionResourceSlice() +# **replaceDeviceTaintRule** +> V1alpha3DeviceTaintRule replaceDeviceTaintRule(body) -delete collection of ResourceSlice +replace the specified DeviceTaintRule ### Example ```typescript import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiDeleteCollectionResourceSliceRequest } from ''; +import type { ResourceV1alpha3ApiReplaceDeviceTaintRuleRequest } from ''; const configuration = createConfiguration(); const apiInstance = new ResourceV1alpha3Api(configuration); -const request: ResourceV1alpha3ApiDeleteCollectionResourceSliceRequest = { - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - _continue: "continue_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - fieldSelector: "fieldSelector_example", - // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - gracePeriodSeconds: 1, - // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - ignoreStoreReadErrorWithClusterBreakingPotential: true, - // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - labelSelector: "labelSelector_example", - // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - limit: 1, - // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - orphanDependents: true, - // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) - propagationPolicy: "propagationPolicy_example", - // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersion: "resourceVersion_example", - // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersionMatch: "resourceVersionMatch_example", - // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - sendInitialEvents: true, - // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - timeoutSeconds: 1, - - body: { - apiVersion: "apiVersion_example", - dryRun: [ - "dryRun_example", - ], - gracePeriodSeconds: 1, - ignoreStoreReadErrorWithClusterBreakingPotential: true, - kind: "kind_example", - orphanDependents: true, - preconditions: { - resourceVersion: "resourceVersion_example", - uid: "uid_example", - }, - propagationPolicy: "propagationPolicy_example", - }, -}; - -const data = await apiInstance.deleteCollectionResourceSlice(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **V1DeleteOptions**| | - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined - **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined - **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined - **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined - **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined - **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined - **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined - **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined - **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined - - -### Return type - -**V1Status** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **deleteDeviceClass** -> V1alpha3DeviceClass deleteDeviceClass() - -delete a DeviceClass - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiDeleteDeviceClassRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiDeleteDeviceClassRequest = { - // name of the DeviceClass - name: "name_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - gracePeriodSeconds: 1, - // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - ignoreStoreReadErrorWithClusterBreakingPotential: true, - // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - orphanDependents: true, - // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) - propagationPolicy: "propagationPolicy_example", - - body: { - apiVersion: "apiVersion_example", - dryRun: [ - "dryRun_example", - ], - gracePeriodSeconds: 1, - ignoreStoreReadErrorWithClusterBreakingPotential: true, - kind: "kind_example", - orphanDependents: true, - preconditions: { - resourceVersion: "resourceVersion_example", - uid: "uid_example", - }, - propagationPolicy: "propagationPolicy_example", - }, -}; - -const data = await apiInstance.deleteDeviceClass(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **V1DeleteOptions**| | - **name** | [**string**] | name of the DeviceClass | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined - **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined - **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined - **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined - - -### Return type - -**V1alpha3DeviceClass** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **deleteNamespacedResourceClaim** -> V1alpha3ResourceClaim deleteNamespacedResourceClaim() - -delete a ResourceClaim - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiDeleteNamespacedResourceClaimRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiDeleteNamespacedResourceClaimRequest = { - // name of the ResourceClaim - name: "name_example", - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - gracePeriodSeconds: 1, - // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - ignoreStoreReadErrorWithClusterBreakingPotential: true, - // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - orphanDependents: true, - // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) - propagationPolicy: "propagationPolicy_example", - - body: { - apiVersion: "apiVersion_example", - dryRun: [ - "dryRun_example", - ], - gracePeriodSeconds: 1, - ignoreStoreReadErrorWithClusterBreakingPotential: true, - kind: "kind_example", - orphanDependents: true, - preconditions: { - resourceVersion: "resourceVersion_example", - uid: "uid_example", - }, - propagationPolicy: "propagationPolicy_example", - }, -}; - -const data = await apiInstance.deleteNamespacedResourceClaim(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **V1DeleteOptions**| | - **name** | [**string**] | name of the ResourceClaim | defaults to undefined - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined - **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined - **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined - **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceClaim** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **deleteNamespacedResourceClaimTemplate** -> V1alpha3ResourceClaimTemplate deleteNamespacedResourceClaimTemplate() - -delete a ResourceClaimTemplate - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiDeleteNamespacedResourceClaimTemplateRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiDeleteNamespacedResourceClaimTemplateRequest = { - // name of the ResourceClaimTemplate - name: "name_example", - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - gracePeriodSeconds: 1, - // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - ignoreStoreReadErrorWithClusterBreakingPotential: true, - // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - orphanDependents: true, - // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) - propagationPolicy: "propagationPolicy_example", - - body: { - apiVersion: "apiVersion_example", - dryRun: [ - "dryRun_example", - ], - gracePeriodSeconds: 1, - ignoreStoreReadErrorWithClusterBreakingPotential: true, - kind: "kind_example", - orphanDependents: true, - preconditions: { - resourceVersion: "resourceVersion_example", - uid: "uid_example", - }, - propagationPolicy: "propagationPolicy_example", - }, -}; - -const data = await apiInstance.deleteNamespacedResourceClaimTemplate(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **V1DeleteOptions**| | - **name** | [**string**] | name of the ResourceClaimTemplate | defaults to undefined - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined - **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined - **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined - **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceClaimTemplate** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **deleteResourceSlice** -> V1alpha3ResourceSlice deleteResourceSlice() - -delete a ResourceSlice - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiDeleteResourceSliceRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiDeleteResourceSliceRequest = { - // name of the ResourceSlice - name: "name_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - gracePeriodSeconds: 1, - // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - ignoreStoreReadErrorWithClusterBreakingPotential: true, - // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - orphanDependents: true, - // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) - propagationPolicy: "propagationPolicy_example", - - body: { - apiVersion: "apiVersion_example", - dryRun: [ - "dryRun_example", - ], - gracePeriodSeconds: 1, - ignoreStoreReadErrorWithClusterBreakingPotential: true, - kind: "kind_example", - orphanDependents: true, - preconditions: { - resourceVersion: "resourceVersion_example", - uid: "uid_example", - }, - propagationPolicy: "propagationPolicy_example", - }, -}; - -const data = await apiInstance.deleteResourceSlice(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **V1DeleteOptions**| | - **name** | [**string**] | name of the ResourceSlice | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined - **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined - **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined - **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceSlice** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **getAPIResources** -> V1APIResourceList getAPIResources() - -get available resources - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request = {}; - -const data = await apiInstance.getAPIResources(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters -This endpoint does not need any parameter. - - -### Return type - -**V1APIResourceList** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **listDeviceClass** -> V1alpha3DeviceClassList listDeviceClass() - -list or watch objects of kind DeviceClass - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiListDeviceClassRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiListDeviceClassRequest = { - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) - allowWatchBookmarks: true, - // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - _continue: "continue_example", - // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - fieldSelector: "fieldSelector_example", - // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - labelSelector: "labelSelector_example", - // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - limit: 1, - // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersion: "resourceVersion_example", - // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersionMatch: "resourceVersionMatch_example", - // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - sendInitialEvents: true, - // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - timeoutSeconds: 1, - // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - watch: true, -}; - -const data = await apiInstance.listDeviceClass(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined - **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined - **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined - **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined - **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined - **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined - **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined - **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined - - -### Return type - -**V1alpha3DeviceClassList** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **listNamespacedResourceClaim** -> V1alpha3ResourceClaimList listNamespacedResourceClaim() - -list or watch objects of kind ResourceClaim - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiListNamespacedResourceClaimRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiListNamespacedResourceClaimRequest = { - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) - allowWatchBookmarks: true, - // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - _continue: "continue_example", - // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - fieldSelector: "fieldSelector_example", - // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - labelSelector: "labelSelector_example", - // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - limit: 1, - // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersion: "resourceVersion_example", - // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersionMatch: "resourceVersionMatch_example", - // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - sendInitialEvents: true, - // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - timeoutSeconds: 1, - // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - watch: true, -}; - -const data = await apiInstance.listNamespacedResourceClaim(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined - **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined - **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined - **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined - **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined - **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined - **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined - **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceClaimList** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **listNamespacedResourceClaimTemplate** -> V1alpha3ResourceClaimTemplateList listNamespacedResourceClaimTemplate() - -list or watch objects of kind ResourceClaimTemplate - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiListNamespacedResourceClaimTemplateRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiListNamespacedResourceClaimTemplateRequest = { - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) - allowWatchBookmarks: true, - // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - _continue: "continue_example", - // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - fieldSelector: "fieldSelector_example", - // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - labelSelector: "labelSelector_example", - // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - limit: 1, - // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersion: "resourceVersion_example", - // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersionMatch: "resourceVersionMatch_example", - // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - sendInitialEvents: true, - // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - timeoutSeconds: 1, - // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - watch: true, -}; - -const data = await apiInstance.listNamespacedResourceClaimTemplate(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined - **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined - **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined - **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined - **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined - **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined - **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined - **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceClaimTemplateList** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **listResourceClaimForAllNamespaces** -> V1alpha3ResourceClaimList listResourceClaimForAllNamespaces() - -list or watch objects of kind ResourceClaim - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiListResourceClaimForAllNamespacesRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiListResourceClaimForAllNamespacesRequest = { - // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) - allowWatchBookmarks: true, - // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - _continue: "continue_example", - // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - fieldSelector: "fieldSelector_example", - // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - labelSelector: "labelSelector_example", - // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - limit: 1, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersion: "resourceVersion_example", - // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersionMatch: "resourceVersionMatch_example", - // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - sendInitialEvents: true, - // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - timeoutSeconds: 1, - // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - watch: true, -}; - -const data = await apiInstance.listResourceClaimForAllNamespaces(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined - **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined - **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined - **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined - **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined - **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined - **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceClaimList** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **listResourceClaimTemplateForAllNamespaces** -> V1alpha3ResourceClaimTemplateList listResourceClaimTemplateForAllNamespaces() - -list or watch objects of kind ResourceClaimTemplate - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiListResourceClaimTemplateForAllNamespacesRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiListResourceClaimTemplateForAllNamespacesRequest = { - // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) - allowWatchBookmarks: true, - // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - _continue: "continue_example", - // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - fieldSelector: "fieldSelector_example", - // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - labelSelector: "labelSelector_example", - // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - limit: 1, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersion: "resourceVersion_example", - // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersionMatch: "resourceVersionMatch_example", - // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - sendInitialEvents: true, - // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - timeoutSeconds: 1, - // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - watch: true, -}; - -const data = await apiInstance.listResourceClaimTemplateForAllNamespaces(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined - **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined - **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined - **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined - **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined - **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined - **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceClaimTemplateList** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **listResourceSlice** -> V1alpha3ResourceSliceList listResourceSlice() - -list or watch objects of kind ResourceSlice - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiListResourceSliceRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiListResourceSliceRequest = { - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) - allowWatchBookmarks: true, - // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - _continue: "continue_example", - // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - fieldSelector: "fieldSelector_example", - // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - labelSelector: "labelSelector_example", - // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - limit: 1, - // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersion: "resourceVersion_example", - // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - resourceVersionMatch: "resourceVersionMatch_example", - // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - sendInitialEvents: true, - // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - timeoutSeconds: 1, - // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - watch: true, -}; - -const data = await apiInstance.listResourceSlice(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined - **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined - **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined - **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined - **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined - **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined - **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined - **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined - **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceSliceList** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **patchDeviceClass** -> V1alpha3DeviceClass patchDeviceClass(body) - -partially update the specified DeviceClass - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiPatchDeviceClassRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiPatchDeviceClassRequest = { - // name of the DeviceClass - name: "name_example", - - body: {}, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", - // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - force: true, -}; - -const data = await apiInstance.patchDeviceClass(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **any**| | - **name** | [**string**] | name of the DeviceClass | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined - **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined - - -### Return type - -**V1alpha3DeviceClass** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **patchNamespacedResourceClaim** -> V1alpha3ResourceClaim patchNamespacedResourceClaim(body) - -partially update the specified ResourceClaim - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiPatchNamespacedResourceClaimRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiPatchNamespacedResourceClaimRequest = { - // name of the ResourceClaim - name: "name_example", - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - - body: {}, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", - // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - force: true, -}; - -const data = await apiInstance.patchNamespacedResourceClaim(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **any**| | - **name** | [**string**] | name of the ResourceClaim | defaults to undefined - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined - **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceClaim** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **patchNamespacedResourceClaimStatus** -> V1alpha3ResourceClaim patchNamespacedResourceClaimStatus(body) - -partially update status of the specified ResourceClaim - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiPatchNamespacedResourceClaimStatusRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiPatchNamespacedResourceClaimStatusRequest = { - // name of the ResourceClaim - name: "name_example", - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - - body: {}, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", - // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - force: true, -}; - -const data = await apiInstance.patchNamespacedResourceClaimStatus(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **any**| | - **name** | [**string**] | name of the ResourceClaim | defaults to undefined - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined - **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceClaim** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **patchNamespacedResourceClaimTemplate** -> V1alpha3ResourceClaimTemplate patchNamespacedResourceClaimTemplate(body) - -partially update the specified ResourceClaimTemplate - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiPatchNamespacedResourceClaimTemplateRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiPatchNamespacedResourceClaimTemplateRequest = { - // name of the ResourceClaimTemplate - name: "name_example", - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - - body: {}, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", - // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - force: true, -}; - -const data = await apiInstance.patchNamespacedResourceClaimTemplate(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **any**| | - **name** | [**string**] | name of the ResourceClaimTemplate | defaults to undefined - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined - **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceClaimTemplate** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **patchResourceSlice** -> V1alpha3ResourceSlice patchResourceSlice(body) - -partially update the specified ResourceSlice - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiPatchResourceSliceRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiPatchResourceSliceRequest = { - // name of the ResourceSlice - name: "name_example", - - body: {}, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", - // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - force: true, -}; - -const data = await apiInstance.patchResourceSlice(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **any**| | - **name** | [**string**] | name of the ResourceSlice | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined - **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceSlice** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **readDeviceClass** -> V1alpha3DeviceClass readDeviceClass() - -read the specified DeviceClass - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiReadDeviceClassRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiReadDeviceClassRequest = { - // name of the DeviceClass - name: "name_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", -}; - -const data = await apiInstance.readDeviceClass(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | [**string**] | name of the DeviceClass | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - - -### Return type - -**V1alpha3DeviceClass** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **readNamespacedResourceClaim** -> V1alpha3ResourceClaim readNamespacedResourceClaim() - -read the specified ResourceClaim - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiReadNamespacedResourceClaimRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiReadNamespacedResourceClaimRequest = { - // name of the ResourceClaim - name: "name_example", - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", -}; - -const data = await apiInstance.readNamespacedResourceClaim(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | [**string**] | name of the ResourceClaim | defaults to undefined - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceClaim** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **readNamespacedResourceClaimStatus** -> V1alpha3ResourceClaim readNamespacedResourceClaimStatus() - -read status of the specified ResourceClaim - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiReadNamespacedResourceClaimStatusRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiReadNamespacedResourceClaimStatusRequest = { - // name of the ResourceClaim - name: "name_example", - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", -}; - -const data = await apiInstance.readNamespacedResourceClaimStatus(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | [**string**] | name of the ResourceClaim | defaults to undefined - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceClaim** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **readNamespacedResourceClaimTemplate** -> V1alpha3ResourceClaimTemplate readNamespacedResourceClaimTemplate() - -read the specified ResourceClaimTemplate - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiReadNamespacedResourceClaimTemplateRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiReadNamespacedResourceClaimTemplateRequest = { - // name of the ResourceClaimTemplate - name: "name_example", - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", -}; - -const data = await apiInstance.readNamespacedResourceClaimTemplate(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | [**string**] | name of the ResourceClaimTemplate | defaults to undefined - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceClaimTemplate** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **readResourceSlice** -> V1alpha3ResourceSlice readResourceSlice() - -read the specified ResourceSlice - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiReadResourceSliceRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiReadResourceSliceRequest = { - // name of the ResourceSlice - name: "name_example", - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", -}; - -const data = await apiInstance.readResourceSlice(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | [**string**] | name of the ResourceSlice | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceSlice** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **replaceDeviceClass** -> V1alpha3DeviceClass replaceDeviceClass(body) - -replace the specified DeviceClass - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiReplaceDeviceClassRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiReplaceDeviceClassRequest = { - // name of the DeviceClass - name: "name_example", - - body: { - apiVersion: "apiVersion_example", - kind: "kind_example", - metadata: { - annotations: { - "key": "key_example", - }, - creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), - deletionGracePeriodSeconds: 1, - deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), - finalizers: [ - "finalizers_example", - ], - generateName: "generateName_example", - generation: 1, - labels: { - "key": "key_example", - }, - managedFields: [ - { - apiVersion: "apiVersion_example", - fieldsType: "fieldsType_example", - fieldsV1: {}, - manager: "manager_example", - operation: "operation_example", - subresource: "subresource_example", - time: new Date('1970-01-01T00:00:00.00Z'), - }, - ], - name: "name_example", - namespace: "namespace_example", - ownerReferences: [ - { - apiVersion: "apiVersion_example", - blockOwnerDeletion: true, - controller: true, - kind: "kind_example", - name: "name_example", - uid: "uid_example", - }, - ], - resourceVersion: "resourceVersion_example", - selfLink: "selfLink_example", - uid: "uid_example", - }, - spec: { - config: [ - { - opaque: { - driver: "driver_example", - parameters: {}, - }, - }, - ], - selectors: [ - { - cel: { - expression: "expression_example", - }, - }, - ], - }, - }, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", -}; - -const data = await apiInstance.replaceDeviceClass(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **V1alpha3DeviceClass**| | - **name** | [**string**] | name of the DeviceClass | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined - - -### Return type - -**V1alpha3DeviceClass** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **replaceNamespacedResourceClaim** -> V1alpha3ResourceClaim replaceNamespacedResourceClaim(body) - -replace the specified ResourceClaim - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiReplaceNamespacedResourceClaimRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiReplaceNamespacedResourceClaimRequest = { - // name of the ResourceClaim - name: "name_example", - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - - body: { - apiVersion: "apiVersion_example", - kind: "kind_example", - metadata: { - annotations: { - "key": "key_example", - }, - creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), - deletionGracePeriodSeconds: 1, - deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), - finalizers: [ - "finalizers_example", - ], - generateName: "generateName_example", - generation: 1, - labels: { - "key": "key_example", - }, - managedFields: [ - { - apiVersion: "apiVersion_example", - fieldsType: "fieldsType_example", - fieldsV1: {}, - manager: "manager_example", - operation: "operation_example", - subresource: "subresource_example", - time: new Date('1970-01-01T00:00:00.00Z'), - }, - ], - name: "name_example", - namespace: "namespace_example", - ownerReferences: [ - { - apiVersion: "apiVersion_example", - blockOwnerDeletion: true, - controller: true, - kind: "kind_example", - name: "name_example", - uid: "uid_example", - }, - ], - resourceVersion: "resourceVersion_example", - selfLink: "selfLink_example", - uid: "uid_example", - }, - spec: { - devices: { - config: [ - { - opaque: { - driver: "driver_example", - parameters: {}, - }, - requests: [ - "requests_example", - ], - }, - ], - constraints: [ - { - matchAttribute: "matchAttribute_example", - requests: [ - "requests_example", - ], - }, - ], - requests: [ - { - adminAccess: true, - allocationMode: "allocationMode_example", - count: 1, - deviceClassName: "deviceClassName_example", - name: "name_example", - selectors: [ - { - cel: { - expression: "expression_example", - }, - }, - ], - }, - ], - }, - }, - status: { - allocation: { - devices: { - config: [ - { - opaque: { - driver: "driver_example", - parameters: {}, - }, - requests: [ - "requests_example", - ], - source: "source_example", - }, - ], - results: [ - { - adminAccess: true, - device: "device_example", - driver: "driver_example", - pool: "pool_example", - request: "request_example", - }, - ], - }, - nodeSelector: { - nodeSelectorTerms: [ - { - matchExpressions: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], - matchFields: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], - }, - ], - }, - }, - devices: [ - { - conditions: [ - { - lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), - message: "message_example", - observedGeneration: 1, - reason: "reason_example", - status: "status_example", - type: "type_example", - }, - ], - data: {}, - device: "device_example", - driver: "driver_example", - networkData: { - hardwareAddress: "hardwareAddress_example", - interfaceName: "interfaceName_example", - ips: [ - "ips_example", - ], - }, - pool: "pool_example", - }, - ], - reservedFor: [ - { - apiGroup: "apiGroup_example", - name: "name_example", - resource: "resource_example", - uid: "uid_example", - }, - ], - }, - }, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", -}; - -const data = await apiInstance.replaceNamespacedResourceClaim(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **V1alpha3ResourceClaim**| | - **name** | [**string**] | name of the ResourceClaim | defaults to undefined - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceClaim** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **replaceNamespacedResourceClaimStatus** -> V1alpha3ResourceClaim replaceNamespacedResourceClaimStatus(body) - -replace status of the specified ResourceClaim - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiReplaceNamespacedResourceClaimStatusRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiReplaceNamespacedResourceClaimStatusRequest = { - // name of the ResourceClaim - name: "name_example", - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", - - body: { - apiVersion: "apiVersion_example", - kind: "kind_example", - metadata: { - annotations: { - "key": "key_example", - }, - creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), - deletionGracePeriodSeconds: 1, - deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), - finalizers: [ - "finalizers_example", - ], - generateName: "generateName_example", - generation: 1, - labels: { - "key": "key_example", - }, - managedFields: [ - { - apiVersion: "apiVersion_example", - fieldsType: "fieldsType_example", - fieldsV1: {}, - manager: "manager_example", - operation: "operation_example", - subresource: "subresource_example", - time: new Date('1970-01-01T00:00:00.00Z'), - }, - ], - name: "name_example", - namespace: "namespace_example", - ownerReferences: [ - { - apiVersion: "apiVersion_example", - blockOwnerDeletion: true, - controller: true, - kind: "kind_example", - name: "name_example", - uid: "uid_example", - }, - ], - resourceVersion: "resourceVersion_example", - selfLink: "selfLink_example", - uid: "uid_example", - }, - spec: { - devices: { - config: [ - { - opaque: { - driver: "driver_example", - parameters: {}, - }, - requests: [ - "requests_example", - ], - }, - ], - constraints: [ - { - matchAttribute: "matchAttribute_example", - requests: [ - "requests_example", - ], - }, - ], - requests: [ - { - adminAccess: true, - allocationMode: "allocationMode_example", - count: 1, - deviceClassName: "deviceClassName_example", - name: "name_example", - selectors: [ - { - cel: { - expression: "expression_example", - }, - }, - ], - }, - ], - }, - }, - status: { - allocation: { - devices: { - config: [ - { - opaque: { - driver: "driver_example", - parameters: {}, - }, - requests: [ - "requests_example", - ], - source: "source_example", - }, - ], - results: [ - { - adminAccess: true, - device: "device_example", - driver: "driver_example", - pool: "pool_example", - request: "request_example", - }, - ], - }, - nodeSelector: { - nodeSelectorTerms: [ - { - matchExpressions: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], - matchFields: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], - }, - ], - }, - }, - devices: [ - { - conditions: [ - { - lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), - message: "message_example", - observedGeneration: 1, - reason: "reason_example", - status: "status_example", - type: "type_example", - }, - ], - data: {}, - device: "device_example", - driver: "driver_example", - networkData: { - hardwareAddress: "hardwareAddress_example", - interfaceName: "interfaceName_example", - ips: [ - "ips_example", - ], - }, - pool: "pool_example", - }, - ], - reservedFor: [ - { - apiGroup: "apiGroup_example", - name: "name_example", - resource: "resource_example", - uid: "uid_example", - }, - ], - }, - }, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", -}; - -const data = await apiInstance.replaceNamespacedResourceClaimStatus(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **V1alpha3ResourceClaim**| | - **name** | [**string**] | name of the ResourceClaim | defaults to undefined - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceClaim** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **replaceNamespacedResourceClaimTemplate** -> V1alpha3ResourceClaimTemplate replaceNamespacedResourceClaimTemplate(body) - -replace the specified ResourceClaimTemplate - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiReplaceNamespacedResourceClaimTemplateRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiReplaceNamespacedResourceClaimTemplateRequest = { - // name of the ResourceClaimTemplate +const request: ResourceV1alpha3ApiReplaceDeviceTaintRuleRequest = { + // name of the DeviceTaintRule name: "name_example", - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", body: { apiVersion: "apiVersion_example", @@ -3491,254 +674,24 @@ const request: ResourceV1alpha3ApiReplaceNamespacedResourceClaimTemplateRequest uid: "uid_example", }, spec: { - metadata: { - annotations: { - "key": "key_example", - }, - creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), - deletionGracePeriodSeconds: 1, - deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), - finalizers: [ - "finalizers_example", - ], - generateName: "generateName_example", - generation: 1, - labels: { - "key": "key_example", - }, - managedFields: [ - { - apiVersion: "apiVersion_example", - fieldsType: "fieldsType_example", - fieldsV1: {}, - manager: "manager_example", - operation: "operation_example", - subresource: "subresource_example", - time: new Date('1970-01-01T00:00:00.00Z'), - }, - ], - name: "name_example", - namespace: "namespace_example", - ownerReferences: [ + deviceSelector: { + device: "device_example", + deviceClassName: "deviceClassName_example", + driver: "driver_example", + pool: "pool_example", + selectors: [ { - apiVersion: "apiVersion_example", - blockOwnerDeletion: true, - controller: true, - kind: "kind_example", - name: "name_example", - uid: "uid_example", - }, - ], - resourceVersion: "resourceVersion_example", - selfLink: "selfLink_example", - uid: "uid_example", - }, - spec: { - devices: { - config: [ - { - opaque: { - driver: "driver_example", - parameters: {}, - }, - requests: [ - "requests_example", - ], - }, - ], - constraints: [ - { - matchAttribute: "matchAttribute_example", - requests: [ - "requests_example", - ], - }, - ], - requests: [ - { - adminAccess: true, - allocationMode: "allocationMode_example", - count: 1, - deviceClassName: "deviceClassName_example", - name: "name_example", - selectors: [ - { - cel: { - expression: "expression_example", - }, - }, - ], - }, - ], - }, - }, - }, - }, - // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - pretty: "pretty_example", - // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - dryRun: "dryRun_example", - // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - fieldManager: "fieldManager_example", - // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - fieldValidation: "fieldValidation_example", -}; - -const data = await apiInstance.replaceNamespacedResourceClaimTemplate(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **V1alpha3ResourceClaimTemplate**| | - **name** | [**string**] | name of the ResourceClaimTemplate | defaults to undefined - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined - **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined - **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined - **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined - **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined - - -### Return type - -**V1alpha3ResourceClaimTemplate** - -### Authorization - -[BearerToken](README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **replaceResourceSlice** -> V1alpha3ResourceSlice replaceResourceSlice(body) - -replace the specified ResourceSlice - -### Example - - -```typescript -import { createConfiguration, ResourceV1alpha3Api } from ''; -import type { ResourceV1alpha3ApiReplaceResourceSliceRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new ResourceV1alpha3Api(configuration); - -const request: ResourceV1alpha3ApiReplaceResourceSliceRequest = { - // name of the ResourceSlice - name: "name_example", - - body: { - apiVersion: "apiVersion_example", - kind: "kind_example", - metadata: { - annotations: { - "key": "key_example", - }, - creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), - deletionGracePeriodSeconds: 1, - deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), - finalizers: [ - "finalizers_example", - ], - generateName: "generateName_example", - generation: 1, - labels: { - "key": "key_example", - }, - managedFields: [ - { - apiVersion: "apiVersion_example", - fieldsType: "fieldsType_example", - fieldsV1: {}, - manager: "manager_example", - operation: "operation_example", - subresource: "subresource_example", - time: new Date('1970-01-01T00:00:00.00Z'), - }, - ], - name: "name_example", - namespace: "namespace_example", - ownerReferences: [ - { - apiVersion: "apiVersion_example", - blockOwnerDeletion: true, - controller: true, - kind: "kind_example", - name: "name_example", - uid: "uid_example", - }, - ], - resourceVersion: "resourceVersion_example", - selfLink: "selfLink_example", - uid: "uid_example", - }, - spec: { - allNodes: true, - devices: [ - { - basic: { - attributes: { - "key": { - bool: true, - _int: 1, - string: "string_example", - version: "version_example", - }, + cel: { + expression: "expression_example", }, - capacity: { - "key": "key_example", - }, - }, - name: "name_example", - }, - ], - driver: "driver_example", - nodeName: "nodeName_example", - nodeSelector: { - nodeSelectorTerms: [ - { - matchExpressions: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], - matchFields: [ - { - key: "key_example", - operator: "operator_example", - values: [ - "values_example", - ], - }, - ], }, ], }, - pool: { - generation: 1, - name: "name_example", - resourceSliceCount: 1, + taint: { + effect: "effect_example", + key: "key_example", + timeAdded: new Date('1970-01-01T00:00:00.00Z'), + value: "value_example", }, }, }, @@ -3752,7 +705,7 @@ const request: ResourceV1alpha3ApiReplaceResourceSliceRequest = { fieldValidation: "fieldValidation_example", }; -const data = await apiInstance.replaceResourceSlice(request); +const data = await apiInstance.replaceDeviceTaintRule(request); console.log('API called successfully. Returned data:', data); ``` @@ -3761,8 +714,8 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **V1alpha3ResourceSlice**| | - **name** | [**string**] | name of the ResourceSlice | defaults to undefined + **body** | **V1alpha3DeviceTaintRule**| | + **name** | [**string**] | name of the DeviceTaintRule | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined @@ -3771,7 +724,7 @@ Name | Type | Description | Notes ### Return type -**V1alpha3ResourceSlice** +**V1alpha3DeviceTaintRule** ### Authorization diff --git a/src/gen/ResourceV1beta1Api.md b/src/gen/ResourceV1beta1Api.md index 96ae71ccbe..381e04c42c 100644 --- a/src/gen/ResourceV1beta1Api.md +++ b/src/gen/ResourceV1beta1Api.md @@ -111,6 +111,7 @@ const request: ResourceV1beta1ApiCreateDeviceClassRequest = { }, }, ], + extendedResourceName: "extendedResourceName_example", selectors: [ { cel: { @@ -249,6 +250,7 @@ const request: ResourceV1beta1ApiCreateNamespacedResourceClaimRequest = { ], constraints: [ { + distinctAttribute: "distinctAttribute_example", matchAttribute: "matchAttribute_example", requests: [ "requests_example", @@ -259,8 +261,42 @@ const request: ResourceV1beta1ApiCreateNamespacedResourceClaimRequest = { { adminAccess: true, allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", + firstAvailable: [ + { + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + name: "name_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + ], name: "name_example", selectors: [ { @@ -269,12 +305,22 @@ const request: ResourceV1beta1ApiCreateNamespacedResourceClaimRequest = { }, }, ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], }, ], }, }, status: { allocation: { + allocationTimestamp: new Date('1970-01-01T00:00:00.00Z'), devices: { config: [ { @@ -291,10 +337,29 @@ const request: ResourceV1beta1ApiCreateNamespacedResourceClaimRequest = { results: [ { adminAccess: true, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + consumedCapacity: { + "key": "key_example", + }, device: "device_example", driver: "driver_example", pool: "pool_example", request: "request_example", + shareID: "shareID_example", + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], }, ], }, @@ -346,6 +411,7 @@ const request: ResourceV1beta1ApiCreateNamespacedResourceClaimRequest = { ], }, pool: "pool_example", + shareID: "shareID_example", }, ], reservedFor: [ @@ -531,6 +597,7 @@ const request: ResourceV1beta1ApiCreateNamespacedResourceClaimTemplateRequest = ], constraints: [ { + distinctAttribute: "distinctAttribute_example", matchAttribute: "matchAttribute_example", requests: [ "requests_example", @@ -541,8 +608,42 @@ const request: ResourceV1beta1ApiCreateNamespacedResourceClaimTemplateRequest = { adminAccess: true, allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", + firstAvailable: [ + { + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + name: "name_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + ], name: "name_example", selectors: [ { @@ -551,6 +652,15 @@ const request: ResourceV1beta1ApiCreateNamespacedResourceClaimTemplateRequest = }, }, ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], }, ], }, @@ -675,6 +785,8 @@ const request: ResourceV1beta1ApiCreateResourceSliceRequest = { devices: [ { basic: { + allNodes: true, + allowMultipleAllocations: true, attributes: { "key": { bool: true, @@ -683,11 +795,72 @@ const request: ResourceV1beta1ApiCreateResourceSliceRequest = { version: "version_example", }, }, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + bindsToNode: true, capacity: { "key": { + requestPolicy: { + _default: "_default_example", + validRange: { + max: "max_example", + min: "min_example", + step: "step_example", + }, + validValues: [ + "validValues_example", + ], + }, value: "value_example", }, }, + consumesCounters: [ + { + counterSet: "counterSet_example", + counters: { + "key": { + value: "value_example", + }, + }, + }, + ], + nodeName: "nodeName_example", + nodeSelector: { + nodeSelectorTerms: [ + { + matchExpressions: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + matchFields: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + }, + ], + }, + taints: [ + { + effect: "effect_example", + key: "key_example", + timeAdded: new Date('1970-01-01T00:00:00.00Z'), + value: "value_example", + }, + ], }, name: "name_example", }, @@ -718,11 +891,22 @@ const request: ResourceV1beta1ApiCreateResourceSliceRequest = { }, ], }, + perDeviceNodeSelection: true, pool: { generation: 1, name: "name_example", resourceSliceCount: 1, }, + sharedCounters: [ + { + counters: { + "key": { + value: "value_example", + }, + }, + name: "name_example", + }, + ], }, }, // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) @@ -2885,6 +3069,7 @@ const request: ResourceV1beta1ApiReplaceDeviceClassRequest = { }, }, ], + extendedResourceName: "extendedResourceName_example", selectors: [ { cel: { @@ -3025,6 +3210,7 @@ const request: ResourceV1beta1ApiReplaceNamespacedResourceClaimRequest = { ], constraints: [ { + distinctAttribute: "distinctAttribute_example", matchAttribute: "matchAttribute_example", requests: [ "requests_example", @@ -3035,8 +3221,42 @@ const request: ResourceV1beta1ApiReplaceNamespacedResourceClaimRequest = { { adminAccess: true, allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", + firstAvailable: [ + { + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + name: "name_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + ], name: "name_example", selectors: [ { @@ -3045,12 +3265,22 @@ const request: ResourceV1beta1ApiReplaceNamespacedResourceClaimRequest = { }, }, ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], }, ], }, }, status: { allocation: { + allocationTimestamp: new Date('1970-01-01T00:00:00.00Z'), devices: { config: [ { @@ -3067,10 +3297,29 @@ const request: ResourceV1beta1ApiReplaceNamespacedResourceClaimRequest = { results: [ { adminAccess: true, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + consumedCapacity: { + "key": "key_example", + }, device: "device_example", driver: "driver_example", pool: "pool_example", request: "request_example", + shareID: "shareID_example", + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], }, ], }, @@ -3122,6 +3371,7 @@ const request: ResourceV1beta1ApiReplaceNamespacedResourceClaimRequest = { ], }, pool: "pool_example", + shareID: "shareID_example", }, ], reservedFor: [ @@ -3266,6 +3516,7 @@ const request: ResourceV1beta1ApiReplaceNamespacedResourceClaimStatusRequest = { ], constraints: [ { + distinctAttribute: "distinctAttribute_example", matchAttribute: "matchAttribute_example", requests: [ "requests_example", @@ -3276,8 +3527,42 @@ const request: ResourceV1beta1ApiReplaceNamespacedResourceClaimStatusRequest = { { adminAccess: true, allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", + firstAvailable: [ + { + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + name: "name_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + ], name: "name_example", selectors: [ { @@ -3286,12 +3571,22 @@ const request: ResourceV1beta1ApiReplaceNamespacedResourceClaimStatusRequest = { }, }, ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], }, ], }, }, status: { allocation: { + allocationTimestamp: new Date('1970-01-01T00:00:00.00Z'), devices: { config: [ { @@ -3308,10 +3603,29 @@ const request: ResourceV1beta1ApiReplaceNamespacedResourceClaimStatusRequest = { results: [ { adminAccess: true, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + consumedCapacity: { + "key": "key_example", + }, device: "device_example", driver: "driver_example", pool: "pool_example", request: "request_example", + shareID: "shareID_example", + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], }, ], }, @@ -3363,6 +3677,7 @@ const request: ResourceV1beta1ApiReplaceNamespacedResourceClaimStatusRequest = { ], }, pool: "pool_example", + shareID: "shareID_example", }, ], reservedFor: [ @@ -3550,6 +3865,7 @@ const request: ResourceV1beta1ApiReplaceNamespacedResourceClaimTemplateRequest = ], constraints: [ { + distinctAttribute: "distinctAttribute_example", matchAttribute: "matchAttribute_example", requests: [ "requests_example", @@ -3560,8 +3876,42 @@ const request: ResourceV1beta1ApiReplaceNamespacedResourceClaimTemplateRequest = { adminAccess: true, allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, count: 1, deviceClassName: "deviceClassName_example", + firstAvailable: [ + { + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + name: "name_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + ], name: "name_example", selectors: [ { @@ -3570,6 +3920,15 @@ const request: ResourceV1beta1ApiReplaceNamespacedResourceClaimTemplateRequest = }, }, ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], }, ], }, @@ -3696,6 +4055,8 @@ const request: ResourceV1beta1ApiReplaceResourceSliceRequest = { devices: [ { basic: { + allNodes: true, + allowMultipleAllocations: true, attributes: { "key": { bool: true, @@ -3704,11 +4065,72 @@ const request: ResourceV1beta1ApiReplaceResourceSliceRequest = { version: "version_example", }, }, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + bindsToNode: true, capacity: { "key": { + requestPolicy: { + _default: "_default_example", + validRange: { + max: "max_example", + min: "min_example", + step: "step_example", + }, + validValues: [ + "validValues_example", + ], + }, value: "value_example", }, }, + consumesCounters: [ + { + counterSet: "counterSet_example", + counters: { + "key": { + value: "value_example", + }, + }, + }, + ], + nodeName: "nodeName_example", + nodeSelector: { + nodeSelectorTerms: [ + { + matchExpressions: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + matchFields: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + }, + ], + }, + taints: [ + { + effect: "effect_example", + key: "key_example", + timeAdded: new Date('1970-01-01T00:00:00.00Z'), + value: "value_example", + }, + ], }, name: "name_example", }, @@ -3739,11 +4161,22 @@ const request: ResourceV1beta1ApiReplaceResourceSliceRequest = { }, ], }, + perDeviceNodeSelection: true, pool: { generation: 1, name: "name_example", resourceSliceCount: 1, }, + sharedCounters: [ + { + counters: { + "key": { + value: "value_example", + }, + }, + name: "name_example", + }, + ], }, }, // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) diff --git a/src/gen/ResourceV1beta2Api.md b/src/gen/ResourceV1beta2Api.md new file mode 100644 index 0000000000..c6fec541f3 --- /dev/null +++ b/src/gen/ResourceV1beta2Api.md @@ -0,0 +1,4238 @@ +# .ResourceV1beta2Api + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createDeviceClass**](ResourceV1beta2Api.md#createDeviceClass) | **POST** /apis/resource.k8s.io/v1beta2/deviceclasses | +[**createNamespacedResourceClaim**](ResourceV1beta2Api.md#createNamespacedResourceClaim) | **POST** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims | +[**createNamespacedResourceClaimTemplate**](ResourceV1beta2Api.md#createNamespacedResourceClaimTemplate) | **POST** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates | +[**createResourceSlice**](ResourceV1beta2Api.md#createResourceSlice) | **POST** /apis/resource.k8s.io/v1beta2/resourceslices | +[**deleteCollectionDeviceClass**](ResourceV1beta2Api.md#deleteCollectionDeviceClass) | **DELETE** /apis/resource.k8s.io/v1beta2/deviceclasses | +[**deleteCollectionNamespacedResourceClaim**](ResourceV1beta2Api.md#deleteCollectionNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims | +[**deleteCollectionNamespacedResourceClaimTemplate**](ResourceV1beta2Api.md#deleteCollectionNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates | +[**deleteCollectionResourceSlice**](ResourceV1beta2Api.md#deleteCollectionResourceSlice) | **DELETE** /apis/resource.k8s.io/v1beta2/resourceslices | +[**deleteDeviceClass**](ResourceV1beta2Api.md#deleteDeviceClass) | **DELETE** /apis/resource.k8s.io/v1beta2/deviceclasses/{name} | +[**deleteNamespacedResourceClaim**](ResourceV1beta2Api.md#deleteNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name} | +[**deleteNamespacedResourceClaimTemplate**](ResourceV1beta2Api.md#deleteNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name} | +[**deleteResourceSlice**](ResourceV1beta2Api.md#deleteResourceSlice) | **DELETE** /apis/resource.k8s.io/v1beta2/resourceslices/{name} | +[**getAPIResources**](ResourceV1beta2Api.md#getAPIResources) | **GET** /apis/resource.k8s.io/v1beta2/ | +[**listDeviceClass**](ResourceV1beta2Api.md#listDeviceClass) | **GET** /apis/resource.k8s.io/v1beta2/deviceclasses | +[**listNamespacedResourceClaim**](ResourceV1beta2Api.md#listNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims | +[**listNamespacedResourceClaimTemplate**](ResourceV1beta2Api.md#listNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates | +[**listResourceClaimForAllNamespaces**](ResourceV1beta2Api.md#listResourceClaimForAllNamespaces) | **GET** /apis/resource.k8s.io/v1beta2/resourceclaims | +[**listResourceClaimTemplateForAllNamespaces**](ResourceV1beta2Api.md#listResourceClaimTemplateForAllNamespaces) | **GET** /apis/resource.k8s.io/v1beta2/resourceclaimtemplates | +[**listResourceSlice**](ResourceV1beta2Api.md#listResourceSlice) | **GET** /apis/resource.k8s.io/v1beta2/resourceslices | +[**patchDeviceClass**](ResourceV1beta2Api.md#patchDeviceClass) | **PATCH** /apis/resource.k8s.io/v1beta2/deviceclasses/{name} | +[**patchNamespacedResourceClaim**](ResourceV1beta2Api.md#patchNamespacedResourceClaim) | **PATCH** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name} | +[**patchNamespacedResourceClaimStatus**](ResourceV1beta2Api.md#patchNamespacedResourceClaimStatus) | **PATCH** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status | +[**patchNamespacedResourceClaimTemplate**](ResourceV1beta2Api.md#patchNamespacedResourceClaimTemplate) | **PATCH** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name} | +[**patchResourceSlice**](ResourceV1beta2Api.md#patchResourceSlice) | **PATCH** /apis/resource.k8s.io/v1beta2/resourceslices/{name} | +[**readDeviceClass**](ResourceV1beta2Api.md#readDeviceClass) | **GET** /apis/resource.k8s.io/v1beta2/deviceclasses/{name} | +[**readNamespacedResourceClaim**](ResourceV1beta2Api.md#readNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name} | +[**readNamespacedResourceClaimStatus**](ResourceV1beta2Api.md#readNamespacedResourceClaimStatus) | **GET** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status | +[**readNamespacedResourceClaimTemplate**](ResourceV1beta2Api.md#readNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name} | +[**readResourceSlice**](ResourceV1beta2Api.md#readResourceSlice) | **GET** /apis/resource.k8s.io/v1beta2/resourceslices/{name} | +[**replaceDeviceClass**](ResourceV1beta2Api.md#replaceDeviceClass) | **PUT** /apis/resource.k8s.io/v1beta2/deviceclasses/{name} | +[**replaceNamespacedResourceClaim**](ResourceV1beta2Api.md#replaceNamespacedResourceClaim) | **PUT** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name} | +[**replaceNamespacedResourceClaimStatus**](ResourceV1beta2Api.md#replaceNamespacedResourceClaimStatus) | **PUT** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status | +[**replaceNamespacedResourceClaimTemplate**](ResourceV1beta2Api.md#replaceNamespacedResourceClaimTemplate) | **PUT** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name} | +[**replaceResourceSlice**](ResourceV1beta2Api.md#replaceResourceSlice) | **PUT** /apis/resource.k8s.io/v1beta2/resourceslices/{name} | + + +# **createDeviceClass** +> V1beta2DeviceClass createDeviceClass(body) + +create a DeviceClass + +### Example + + +```typescript +import { createConfiguration, ResourceV1beta2Api } from ''; +import type { ResourceV1beta2ApiCreateDeviceClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1beta2Api(configuration); + +const request: ResourceV1beta2ApiCreateDeviceClassRequest = { + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + config: [ + { + opaque: { + driver: "driver_example", + parameters: {}, + }, + }, + ], + extendedResourceName: "extendedResourceName_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.createDeviceClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1beta2DeviceClass**| | + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1beta2DeviceClass** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **createNamespacedResourceClaim** +> V1beta2ResourceClaim createNamespacedResourceClaim(body) + +create a ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1beta2Api } from ''; +import type { ResourceV1beta2ApiCreateNamespacedResourceClaimRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1beta2Api(configuration); + +const request: ResourceV1beta2ApiCreateNamespacedResourceClaimRequest = { + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + devices: { + config: [ + { + opaque: { + driver: "driver_example", + parameters: {}, + }, + requests: [ + "requests_example", + ], + }, + ], + constraints: [ + { + distinctAttribute: "distinctAttribute_example", + matchAttribute: "matchAttribute_example", + requests: [ + "requests_example", + ], + }, + ], + requests: [ + { + exactly: { + adminAccess: true, + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + firstAvailable: [ + { + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + name: "name_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + ], + name: "name_example", + }, + ], + }, + }, + status: { + allocation: { + allocationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + devices: { + config: [ + { + opaque: { + driver: "driver_example", + parameters: {}, + }, + requests: [ + "requests_example", + ], + source: "source_example", + }, + ], + results: [ + { + adminAccess: true, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + consumedCapacity: { + "key": "key_example", + }, + device: "device_example", + driver: "driver_example", + pool: "pool_example", + request: "request_example", + shareID: "shareID_example", + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + ], + }, + nodeSelector: { + nodeSelectorTerms: [ + { + matchExpressions: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + matchFields: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + }, + ], + }, + }, + devices: [ + { + conditions: [ + { + lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), + message: "message_example", + observedGeneration: 1, + reason: "reason_example", + status: "status_example", + type: "type_example", + }, + ], + data: {}, + device: "device_example", + driver: "driver_example", + networkData: { + hardwareAddress: "hardwareAddress_example", + interfaceName: "interfaceName_example", + ips: [ + "ips_example", + ], + }, + pool: "pool_example", + shareID: "shareID_example", + }, + ], + reservedFor: [ + { + apiGroup: "apiGroup_example", + name: "name_example", + resource: "resource_example", + uid: "uid_example", + }, + ], + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.createNamespacedResourceClaim(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1beta2ResourceClaim**| | + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1beta2ResourceClaim** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **createNamespacedResourceClaimTemplate** +> V1beta2ResourceClaimTemplate createNamespacedResourceClaimTemplate(body) + +create a ResourceClaimTemplate + +### Example + + +```typescript +import { createConfiguration, ResourceV1beta2Api } from ''; +import type { ResourceV1beta2ApiCreateNamespacedResourceClaimTemplateRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1beta2Api(configuration); + +const request: ResourceV1beta2ApiCreateNamespacedResourceClaimTemplateRequest = { + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + devices: { + config: [ + { + opaque: { + driver: "driver_example", + parameters: {}, + }, + requests: [ + "requests_example", + ], + }, + ], + constraints: [ + { + distinctAttribute: "distinctAttribute_example", + matchAttribute: "matchAttribute_example", + requests: [ + "requests_example", + ], + }, + ], + requests: [ + { + exactly: { + adminAccess: true, + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + firstAvailable: [ + { + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + name: "name_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + ], + name: "name_example", + }, + ], + }, + }, + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.createNamespacedResourceClaimTemplate(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1beta2ResourceClaimTemplate**| | + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1beta2ResourceClaimTemplate** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **createResourceSlice** +> V1beta2ResourceSlice createResourceSlice(body) + +create a ResourceSlice + +### Example + + +```typescript +import { createConfiguration, ResourceV1beta2Api } from ''; +import type { ResourceV1beta2ApiCreateResourceSliceRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1beta2Api(configuration); + +const request: ResourceV1beta2ApiCreateResourceSliceRequest = { + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + allNodes: true, + devices: [ + { + allNodes: true, + allowMultipleAllocations: true, + attributes: { + "key": { + bool: true, + _int: 1, + string: "string_example", + version: "version_example", + }, + }, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + bindsToNode: true, + capacity: { + "key": { + requestPolicy: { + _default: "_default_example", + validRange: { + max: "max_example", + min: "min_example", + step: "step_example", + }, + validValues: [ + "validValues_example", + ], + }, + value: "value_example", + }, + }, + consumesCounters: [ + { + counterSet: "counterSet_example", + counters: { + "key": { + value: "value_example", + }, + }, + }, + ], + name: "name_example", + nodeName: "nodeName_example", + nodeSelector: { + nodeSelectorTerms: [ + { + matchExpressions: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + matchFields: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + }, + ], + }, + taints: [ + { + effect: "effect_example", + key: "key_example", + timeAdded: new Date('1970-01-01T00:00:00.00Z'), + value: "value_example", + }, + ], + }, + ], + driver: "driver_example", + nodeName: "nodeName_example", + nodeSelector: { + nodeSelectorTerms: [ + { + matchExpressions: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + matchFields: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + }, + ], + }, + perDeviceNodeSelection: true, + pool: { + generation: 1, + name: "name_example", + resourceSliceCount: 1, + }, + sharedCounters: [ + { + counters: { + "key": { + value: "value_example", + }, + }, + name: "name_example", + }, + ], + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.createResourceSlice(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1beta2ResourceSlice**| | + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1beta2ResourceSlice** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteCollectionDeviceClass** +> V1Status deleteCollectionDeviceClass() + +delete collection of DeviceClass + +### Example + + +```typescript +import { createConfiguration, ResourceV1beta2Api } from ''; +import type { ResourceV1beta2ApiDeleteCollectionDeviceClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1beta2Api(configuration); + +const request: ResourceV1beta2ApiDeleteCollectionDeviceClassRequest = { + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteCollectionDeviceClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + + +### Return type + +**V1Status** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteCollectionNamespacedResourceClaim** +> V1Status deleteCollectionNamespacedResourceClaim() + +delete collection of ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1beta2Api } from ''; +import type { ResourceV1beta2ApiDeleteCollectionNamespacedResourceClaimRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1beta2Api(configuration); + +const request: ResourceV1beta2ApiDeleteCollectionNamespacedResourceClaimRequest = { + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteCollectionNamespacedResourceClaim(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + + +### Return type + +**V1Status** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteCollectionNamespacedResourceClaimTemplate** +> V1Status deleteCollectionNamespacedResourceClaimTemplate() + +delete collection of ResourceClaimTemplate + +### Example + + +```typescript +import { createConfiguration, ResourceV1beta2Api } from ''; +import type { ResourceV1beta2ApiDeleteCollectionNamespacedResourceClaimTemplateRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1beta2Api(configuration); + +const request: ResourceV1beta2ApiDeleteCollectionNamespacedResourceClaimTemplateRequest = { + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteCollectionNamespacedResourceClaimTemplate(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + + +### Return type + +**V1Status** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteCollectionResourceSlice** +> V1Status deleteCollectionResourceSlice() + +delete collection of ResourceSlice + +### Example + + +```typescript +import { createConfiguration, ResourceV1beta2Api } from ''; +import type { ResourceV1beta2ApiDeleteCollectionResourceSliceRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1beta2Api(configuration); + +const request: ResourceV1beta2ApiDeleteCollectionResourceSliceRequest = { + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteCollectionResourceSlice(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + + +### Return type + +**V1Status** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteDeviceClass** +> V1beta2DeviceClass deleteDeviceClass() + +delete a DeviceClass + +### Example + + +```typescript +import { createConfiguration, ResourceV1beta2Api } from ''; +import type { ResourceV1beta2ApiDeleteDeviceClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1beta2Api(configuration); + +const request: ResourceV1beta2ApiDeleteDeviceClassRequest = { + // name of the DeviceClass + name: "name_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteDeviceClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **name** | [**string**] | name of the DeviceClass | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + + +### Return type + +**V1beta2DeviceClass** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteNamespacedResourceClaim** +> V1beta2ResourceClaim deleteNamespacedResourceClaim() + +delete a ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1beta2Api } from ''; +import type { ResourceV1beta2ApiDeleteNamespacedResourceClaimRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1beta2Api(configuration); + +const request: ResourceV1beta2ApiDeleteNamespacedResourceClaimRequest = { + // name of the ResourceClaim + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteNamespacedResourceClaim(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **name** | [**string**] | name of the ResourceClaim | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + + +### Return type + +**V1beta2ResourceClaim** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteNamespacedResourceClaimTemplate** +> V1beta2ResourceClaimTemplate deleteNamespacedResourceClaimTemplate() + +delete a ResourceClaimTemplate + +### Example + + +```typescript +import { createConfiguration, ResourceV1beta2Api } from ''; +import type { ResourceV1beta2ApiDeleteNamespacedResourceClaimTemplateRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1beta2Api(configuration); + +const request: ResourceV1beta2ApiDeleteNamespacedResourceClaimTemplateRequest = { + // name of the ResourceClaimTemplate + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteNamespacedResourceClaimTemplate(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **name** | [**string**] | name of the ResourceClaimTemplate | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + + +### Return type + +**V1beta2ResourceClaimTemplate** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteResourceSlice** +> V1beta2ResourceSlice deleteResourceSlice() + +delete a ResourceSlice + +### Example + + +```typescript +import { createConfiguration, ResourceV1beta2Api } from ''; +import type { ResourceV1beta2ApiDeleteResourceSliceRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1beta2Api(configuration); + +const request: ResourceV1beta2ApiDeleteResourceSliceRequest = { + // name of the ResourceSlice + name: "name_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteResourceSlice(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **name** | [**string**] | name of the ResourceSlice | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + + +### Return type + +**V1beta2ResourceSlice** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **getAPIResources** +> V1APIResourceList getAPIResources() + +get available resources + +### Example + + +```typescript +import { createConfiguration, ResourceV1beta2Api } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1beta2Api(configuration); + +const request = {}; + +const data = await apiInstance.getAPIResources(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters +This endpoint does not need any parameter. + + +### Return type + +**V1APIResourceList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listDeviceClass** +> V1beta2DeviceClassList listDeviceClass() + +list or watch objects of kind DeviceClass + +### Example + + +```typescript +import { createConfiguration, ResourceV1beta2Api } from ''; +import type { ResourceV1beta2ApiListDeviceClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1beta2Api(configuration); + +const request: ResourceV1beta2ApiListDeviceClassRequest = { + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listDeviceClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1beta2DeviceClassList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listNamespacedResourceClaim** +> V1beta2ResourceClaimList listNamespacedResourceClaim() + +list or watch objects of kind ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1beta2Api } from ''; +import type { ResourceV1beta2ApiListNamespacedResourceClaimRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1beta2Api(configuration); + +const request: ResourceV1beta2ApiListNamespacedResourceClaimRequest = { + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listNamespacedResourceClaim(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1beta2ResourceClaimList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listNamespacedResourceClaimTemplate** +> V1beta2ResourceClaimTemplateList listNamespacedResourceClaimTemplate() + +list or watch objects of kind ResourceClaimTemplate + +### Example + + +```typescript +import { createConfiguration, ResourceV1beta2Api } from ''; +import type { ResourceV1beta2ApiListNamespacedResourceClaimTemplateRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1beta2Api(configuration); + +const request: ResourceV1beta2ApiListNamespacedResourceClaimTemplateRequest = { + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listNamespacedResourceClaimTemplate(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1beta2ResourceClaimTemplateList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listResourceClaimForAllNamespaces** +> V1beta2ResourceClaimList listResourceClaimForAllNamespaces() + +list or watch objects of kind ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1beta2Api } from ''; +import type { ResourceV1beta2ApiListResourceClaimForAllNamespacesRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1beta2Api(configuration); + +const request: ResourceV1beta2ApiListResourceClaimForAllNamespacesRequest = { + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listResourceClaimForAllNamespaces(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1beta2ResourceClaimList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listResourceClaimTemplateForAllNamespaces** +> V1beta2ResourceClaimTemplateList listResourceClaimTemplateForAllNamespaces() + +list or watch objects of kind ResourceClaimTemplate + +### Example + + +```typescript +import { createConfiguration, ResourceV1beta2Api } from ''; +import type { ResourceV1beta2ApiListResourceClaimTemplateForAllNamespacesRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1beta2Api(configuration); + +const request: ResourceV1beta2ApiListResourceClaimTemplateForAllNamespacesRequest = { + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listResourceClaimTemplateForAllNamespaces(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1beta2ResourceClaimTemplateList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listResourceSlice** +> V1beta2ResourceSliceList listResourceSlice() + +list or watch objects of kind ResourceSlice + +### Example + + +```typescript +import { createConfiguration, ResourceV1beta2Api } from ''; +import type { ResourceV1beta2ApiListResourceSliceRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1beta2Api(configuration); + +const request: ResourceV1beta2ApiListResourceSliceRequest = { + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listResourceSlice(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1beta2ResourceSliceList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **patchDeviceClass** +> V1beta2DeviceClass patchDeviceClass(body) + +partially update the specified DeviceClass + +### Example + + +```typescript +import { createConfiguration, ResourceV1beta2Api } from ''; +import type { ResourceV1beta2ApiPatchDeviceClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1beta2Api(configuration); + +const request: ResourceV1beta2ApiPatchDeviceClassRequest = { + // name of the DeviceClass + name: "name_example", + + body: {}, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", + // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + force: true, +}; + +const data = await apiInstance.patchDeviceClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **any**| | + **name** | [**string**] | name of the DeviceClass | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined + + +### Return type + +**V1beta2DeviceClass** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **patchNamespacedResourceClaim** +> V1beta2ResourceClaim patchNamespacedResourceClaim(body) + +partially update the specified ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1beta2Api } from ''; +import type { ResourceV1beta2ApiPatchNamespacedResourceClaimRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1beta2Api(configuration); + +const request: ResourceV1beta2ApiPatchNamespacedResourceClaimRequest = { + // name of the ResourceClaim + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: {}, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", + // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + force: true, +}; + +const data = await apiInstance.patchNamespacedResourceClaim(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **any**| | + **name** | [**string**] | name of the ResourceClaim | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined + + +### Return type + +**V1beta2ResourceClaim** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **patchNamespacedResourceClaimStatus** +> V1beta2ResourceClaim patchNamespacedResourceClaimStatus(body) + +partially update status of the specified ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1beta2Api } from ''; +import type { ResourceV1beta2ApiPatchNamespacedResourceClaimStatusRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1beta2Api(configuration); + +const request: ResourceV1beta2ApiPatchNamespacedResourceClaimStatusRequest = { + // name of the ResourceClaim + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: {}, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", + // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + force: true, +}; + +const data = await apiInstance.patchNamespacedResourceClaimStatus(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **any**| | + **name** | [**string**] | name of the ResourceClaim | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined + + +### Return type + +**V1beta2ResourceClaim** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **patchNamespacedResourceClaimTemplate** +> V1beta2ResourceClaimTemplate patchNamespacedResourceClaimTemplate(body) + +partially update the specified ResourceClaimTemplate + +### Example + + +```typescript +import { createConfiguration, ResourceV1beta2Api } from ''; +import type { ResourceV1beta2ApiPatchNamespacedResourceClaimTemplateRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1beta2Api(configuration); + +const request: ResourceV1beta2ApiPatchNamespacedResourceClaimTemplateRequest = { + // name of the ResourceClaimTemplate + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: {}, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", + // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + force: true, +}; + +const data = await apiInstance.patchNamespacedResourceClaimTemplate(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **any**| | + **name** | [**string**] | name of the ResourceClaimTemplate | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined + + +### Return type + +**V1beta2ResourceClaimTemplate** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **patchResourceSlice** +> V1beta2ResourceSlice patchResourceSlice(body) + +partially update the specified ResourceSlice + +### Example + + +```typescript +import { createConfiguration, ResourceV1beta2Api } from ''; +import type { ResourceV1beta2ApiPatchResourceSliceRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1beta2Api(configuration); + +const request: ResourceV1beta2ApiPatchResourceSliceRequest = { + // name of the ResourceSlice + name: "name_example", + + body: {}, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", + // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + force: true, +}; + +const data = await apiInstance.patchResourceSlice(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **any**| | + **name** | [**string**] | name of the ResourceSlice | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined + + +### Return type + +**V1beta2ResourceSlice** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **readDeviceClass** +> V1beta2DeviceClass readDeviceClass() + +read the specified DeviceClass + +### Example + + +```typescript +import { createConfiguration, ResourceV1beta2Api } from ''; +import type { ResourceV1beta2ApiReadDeviceClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1beta2Api(configuration); + +const request: ResourceV1beta2ApiReadDeviceClassRequest = { + // name of the DeviceClass + name: "name_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", +}; + +const data = await apiInstance.readDeviceClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | [**string**] | name of the DeviceClass | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + + +### Return type + +**V1beta2DeviceClass** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **readNamespacedResourceClaim** +> V1beta2ResourceClaim readNamespacedResourceClaim() + +read the specified ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1beta2Api } from ''; +import type { ResourceV1beta2ApiReadNamespacedResourceClaimRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1beta2Api(configuration); + +const request: ResourceV1beta2ApiReadNamespacedResourceClaimRequest = { + // name of the ResourceClaim + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", +}; + +const data = await apiInstance.readNamespacedResourceClaim(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | [**string**] | name of the ResourceClaim | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + + +### Return type + +**V1beta2ResourceClaim** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **readNamespacedResourceClaimStatus** +> V1beta2ResourceClaim readNamespacedResourceClaimStatus() + +read status of the specified ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1beta2Api } from ''; +import type { ResourceV1beta2ApiReadNamespacedResourceClaimStatusRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1beta2Api(configuration); + +const request: ResourceV1beta2ApiReadNamespacedResourceClaimStatusRequest = { + // name of the ResourceClaim + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", +}; + +const data = await apiInstance.readNamespacedResourceClaimStatus(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | [**string**] | name of the ResourceClaim | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + + +### Return type + +**V1beta2ResourceClaim** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **readNamespacedResourceClaimTemplate** +> V1beta2ResourceClaimTemplate readNamespacedResourceClaimTemplate() + +read the specified ResourceClaimTemplate + +### Example + + +```typescript +import { createConfiguration, ResourceV1beta2Api } from ''; +import type { ResourceV1beta2ApiReadNamespacedResourceClaimTemplateRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1beta2Api(configuration); + +const request: ResourceV1beta2ApiReadNamespacedResourceClaimTemplateRequest = { + // name of the ResourceClaimTemplate + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", +}; + +const data = await apiInstance.readNamespacedResourceClaimTemplate(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | [**string**] | name of the ResourceClaimTemplate | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + + +### Return type + +**V1beta2ResourceClaimTemplate** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **readResourceSlice** +> V1beta2ResourceSlice readResourceSlice() + +read the specified ResourceSlice + +### Example + + +```typescript +import { createConfiguration, ResourceV1beta2Api } from ''; +import type { ResourceV1beta2ApiReadResourceSliceRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1beta2Api(configuration); + +const request: ResourceV1beta2ApiReadResourceSliceRequest = { + // name of the ResourceSlice + name: "name_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", +}; + +const data = await apiInstance.readResourceSlice(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | [**string**] | name of the ResourceSlice | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + + +### Return type + +**V1beta2ResourceSlice** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **replaceDeviceClass** +> V1beta2DeviceClass replaceDeviceClass(body) + +replace the specified DeviceClass + +### Example + + +```typescript +import { createConfiguration, ResourceV1beta2Api } from ''; +import type { ResourceV1beta2ApiReplaceDeviceClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1beta2Api(configuration); + +const request: ResourceV1beta2ApiReplaceDeviceClassRequest = { + // name of the DeviceClass + name: "name_example", + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + config: [ + { + opaque: { + driver: "driver_example", + parameters: {}, + }, + }, + ], + extendedResourceName: "extendedResourceName_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.replaceDeviceClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1beta2DeviceClass**| | + **name** | [**string**] | name of the DeviceClass | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1beta2DeviceClass** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **replaceNamespacedResourceClaim** +> V1beta2ResourceClaim replaceNamespacedResourceClaim(body) + +replace the specified ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1beta2Api } from ''; +import type { ResourceV1beta2ApiReplaceNamespacedResourceClaimRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1beta2Api(configuration); + +const request: ResourceV1beta2ApiReplaceNamespacedResourceClaimRequest = { + // name of the ResourceClaim + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + devices: { + config: [ + { + opaque: { + driver: "driver_example", + parameters: {}, + }, + requests: [ + "requests_example", + ], + }, + ], + constraints: [ + { + distinctAttribute: "distinctAttribute_example", + matchAttribute: "matchAttribute_example", + requests: [ + "requests_example", + ], + }, + ], + requests: [ + { + exactly: { + adminAccess: true, + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + firstAvailable: [ + { + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + name: "name_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + ], + name: "name_example", + }, + ], + }, + }, + status: { + allocation: { + allocationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + devices: { + config: [ + { + opaque: { + driver: "driver_example", + parameters: {}, + }, + requests: [ + "requests_example", + ], + source: "source_example", + }, + ], + results: [ + { + adminAccess: true, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + consumedCapacity: { + "key": "key_example", + }, + device: "device_example", + driver: "driver_example", + pool: "pool_example", + request: "request_example", + shareID: "shareID_example", + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + ], + }, + nodeSelector: { + nodeSelectorTerms: [ + { + matchExpressions: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + matchFields: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + }, + ], + }, + }, + devices: [ + { + conditions: [ + { + lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), + message: "message_example", + observedGeneration: 1, + reason: "reason_example", + status: "status_example", + type: "type_example", + }, + ], + data: {}, + device: "device_example", + driver: "driver_example", + networkData: { + hardwareAddress: "hardwareAddress_example", + interfaceName: "interfaceName_example", + ips: [ + "ips_example", + ], + }, + pool: "pool_example", + shareID: "shareID_example", + }, + ], + reservedFor: [ + { + apiGroup: "apiGroup_example", + name: "name_example", + resource: "resource_example", + uid: "uid_example", + }, + ], + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.replaceNamespacedResourceClaim(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1beta2ResourceClaim**| | + **name** | [**string**] | name of the ResourceClaim | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1beta2ResourceClaim** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **replaceNamespacedResourceClaimStatus** +> V1beta2ResourceClaim replaceNamespacedResourceClaimStatus(body) + +replace status of the specified ResourceClaim + +### Example + + +```typescript +import { createConfiguration, ResourceV1beta2Api } from ''; +import type { ResourceV1beta2ApiReplaceNamespacedResourceClaimStatusRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1beta2Api(configuration); + +const request: ResourceV1beta2ApiReplaceNamespacedResourceClaimStatusRequest = { + // name of the ResourceClaim + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + devices: { + config: [ + { + opaque: { + driver: "driver_example", + parameters: {}, + }, + requests: [ + "requests_example", + ], + }, + ], + constraints: [ + { + distinctAttribute: "distinctAttribute_example", + matchAttribute: "matchAttribute_example", + requests: [ + "requests_example", + ], + }, + ], + requests: [ + { + exactly: { + adminAccess: true, + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + firstAvailable: [ + { + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + name: "name_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + ], + name: "name_example", + }, + ], + }, + }, + status: { + allocation: { + allocationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + devices: { + config: [ + { + opaque: { + driver: "driver_example", + parameters: {}, + }, + requests: [ + "requests_example", + ], + source: "source_example", + }, + ], + results: [ + { + adminAccess: true, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + consumedCapacity: { + "key": "key_example", + }, + device: "device_example", + driver: "driver_example", + pool: "pool_example", + request: "request_example", + shareID: "shareID_example", + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + ], + }, + nodeSelector: { + nodeSelectorTerms: [ + { + matchExpressions: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + matchFields: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + }, + ], + }, + }, + devices: [ + { + conditions: [ + { + lastTransitionTime: new Date('1970-01-01T00:00:00.00Z'), + message: "message_example", + observedGeneration: 1, + reason: "reason_example", + status: "status_example", + type: "type_example", + }, + ], + data: {}, + device: "device_example", + driver: "driver_example", + networkData: { + hardwareAddress: "hardwareAddress_example", + interfaceName: "interfaceName_example", + ips: [ + "ips_example", + ], + }, + pool: "pool_example", + shareID: "shareID_example", + }, + ], + reservedFor: [ + { + apiGroup: "apiGroup_example", + name: "name_example", + resource: "resource_example", + uid: "uid_example", + }, + ], + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.replaceNamespacedResourceClaimStatus(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1beta2ResourceClaim**| | + **name** | [**string**] | name of the ResourceClaim | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1beta2ResourceClaim** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **replaceNamespacedResourceClaimTemplate** +> V1beta2ResourceClaimTemplate replaceNamespacedResourceClaimTemplate(body) + +replace the specified ResourceClaimTemplate + +### Example + + +```typescript +import { createConfiguration, ResourceV1beta2Api } from ''; +import type { ResourceV1beta2ApiReplaceNamespacedResourceClaimTemplateRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1beta2Api(configuration); + +const request: ResourceV1beta2ApiReplaceNamespacedResourceClaimTemplateRequest = { + // name of the ResourceClaimTemplate + name: "name_example", + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + devices: { + config: [ + { + opaque: { + driver: "driver_example", + parameters: {}, + }, + requests: [ + "requests_example", + ], + }, + ], + constraints: [ + { + distinctAttribute: "distinctAttribute_example", + matchAttribute: "matchAttribute_example", + requests: [ + "requests_example", + ], + }, + ], + requests: [ + { + exactly: { + adminAccess: true, + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + firstAvailable: [ + { + allocationMode: "allocationMode_example", + capacity: { + requests: { + "key": "key_example", + }, + }, + count: 1, + deviceClassName: "deviceClassName_example", + name: "name_example", + selectors: [ + { + cel: { + expression: "expression_example", + }, + }, + ], + tolerations: [ + { + effect: "effect_example", + key: "key_example", + operator: "operator_example", + tolerationSeconds: 1, + value: "value_example", + }, + ], + }, + ], + name: "name_example", + }, + ], + }, + }, + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.replaceNamespacedResourceClaimTemplate(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1beta2ResourceClaimTemplate**| | + **name** | [**string**] | name of the ResourceClaimTemplate | defaults to undefined + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1beta2ResourceClaimTemplate** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **replaceResourceSlice** +> V1beta2ResourceSlice replaceResourceSlice(body) + +replace the specified ResourceSlice + +### Example + + +```typescript +import { createConfiguration, ResourceV1beta2Api } from ''; +import type { ResourceV1beta2ApiReplaceResourceSliceRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new ResourceV1beta2Api(configuration); + +const request: ResourceV1beta2ApiReplaceResourceSliceRequest = { + // name of the ResourceSlice + name: "name_example", + + body: { + apiVersion: "apiVersion_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + spec: { + allNodes: true, + devices: [ + { + allNodes: true, + allowMultipleAllocations: true, + attributes: { + "key": { + bool: true, + _int: 1, + string: "string_example", + version: "version_example", + }, + }, + bindingConditions: [ + "bindingConditions_example", + ], + bindingFailureConditions: [ + "bindingFailureConditions_example", + ], + bindsToNode: true, + capacity: { + "key": { + requestPolicy: { + _default: "_default_example", + validRange: { + max: "max_example", + min: "min_example", + step: "step_example", + }, + validValues: [ + "validValues_example", + ], + }, + value: "value_example", + }, + }, + consumesCounters: [ + { + counterSet: "counterSet_example", + counters: { + "key": { + value: "value_example", + }, + }, + }, + ], + name: "name_example", + nodeName: "nodeName_example", + nodeSelector: { + nodeSelectorTerms: [ + { + matchExpressions: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + matchFields: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + }, + ], + }, + taints: [ + { + effect: "effect_example", + key: "key_example", + timeAdded: new Date('1970-01-01T00:00:00.00Z'), + value: "value_example", + }, + ], + }, + ], + driver: "driver_example", + nodeName: "nodeName_example", + nodeSelector: { + nodeSelectorTerms: [ + { + matchExpressions: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + matchFields: [ + { + key: "key_example", + operator: "operator_example", + values: [ + "values_example", + ], + }, + ], + }, + ], + }, + perDeviceNodeSelection: true, + pool: { + generation: 1, + name: "name_example", + resourceSliceCount: 1, + }, + sharedCounters: [ + { + counters: { + "key": { + value: "value_example", + }, + }, + name: "name_example", + }, + ], + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.replaceResourceSlice(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1beta2ResourceSlice**| | + **name** | [**string**] | name of the ResourceSlice | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1beta2ResourceSlice** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + + diff --git a/src/gen/StorageV1Api.md b/src/gen/StorageV1Api.md index 7879376595..83ffbcaa60 100644 --- a/src/gen/StorageV1Api.md +++ b/src/gen/StorageV1Api.md @@ -9,6 +9,7 @@ Method | HTTP request | Description [**createNamespacedCSIStorageCapacity**](StorageV1Api.md#createNamespacedCSIStorageCapacity) | **POST** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities | [**createStorageClass**](StorageV1Api.md#createStorageClass) | **POST** /apis/storage.k8s.io/v1/storageclasses | [**createVolumeAttachment**](StorageV1Api.md#createVolumeAttachment) | **POST** /apis/storage.k8s.io/v1/volumeattachments | +[**createVolumeAttributesClass**](StorageV1Api.md#createVolumeAttributesClass) | **POST** /apis/storage.k8s.io/v1/volumeattributesclasses | [**deleteCSIDriver**](StorageV1Api.md#deleteCSIDriver) | **DELETE** /apis/storage.k8s.io/v1/csidrivers/{name} | [**deleteCSINode**](StorageV1Api.md#deleteCSINode) | **DELETE** /apis/storage.k8s.io/v1/csinodes/{name} | [**deleteCollectionCSIDriver**](StorageV1Api.md#deleteCollectionCSIDriver) | **DELETE** /apis/storage.k8s.io/v1/csidrivers | @@ -16,9 +17,11 @@ Method | HTTP request | Description [**deleteCollectionNamespacedCSIStorageCapacity**](StorageV1Api.md#deleteCollectionNamespacedCSIStorageCapacity) | **DELETE** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities | [**deleteCollectionStorageClass**](StorageV1Api.md#deleteCollectionStorageClass) | **DELETE** /apis/storage.k8s.io/v1/storageclasses | [**deleteCollectionVolumeAttachment**](StorageV1Api.md#deleteCollectionVolumeAttachment) | **DELETE** /apis/storage.k8s.io/v1/volumeattachments | +[**deleteCollectionVolumeAttributesClass**](StorageV1Api.md#deleteCollectionVolumeAttributesClass) | **DELETE** /apis/storage.k8s.io/v1/volumeattributesclasses | [**deleteNamespacedCSIStorageCapacity**](StorageV1Api.md#deleteNamespacedCSIStorageCapacity) | **DELETE** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name} | [**deleteStorageClass**](StorageV1Api.md#deleteStorageClass) | **DELETE** /apis/storage.k8s.io/v1/storageclasses/{name} | [**deleteVolumeAttachment**](StorageV1Api.md#deleteVolumeAttachment) | **DELETE** /apis/storage.k8s.io/v1/volumeattachments/{name} | +[**deleteVolumeAttributesClass**](StorageV1Api.md#deleteVolumeAttributesClass) | **DELETE** /apis/storage.k8s.io/v1/volumeattributesclasses/{name} | [**getAPIResources**](StorageV1Api.md#getAPIResources) | **GET** /apis/storage.k8s.io/v1/ | [**listCSIDriver**](StorageV1Api.md#listCSIDriver) | **GET** /apis/storage.k8s.io/v1/csidrivers | [**listCSINode**](StorageV1Api.md#listCSINode) | **GET** /apis/storage.k8s.io/v1/csinodes | @@ -26,24 +29,28 @@ Method | HTTP request | Description [**listNamespacedCSIStorageCapacity**](StorageV1Api.md#listNamespacedCSIStorageCapacity) | **GET** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities | [**listStorageClass**](StorageV1Api.md#listStorageClass) | **GET** /apis/storage.k8s.io/v1/storageclasses | [**listVolumeAttachment**](StorageV1Api.md#listVolumeAttachment) | **GET** /apis/storage.k8s.io/v1/volumeattachments | +[**listVolumeAttributesClass**](StorageV1Api.md#listVolumeAttributesClass) | **GET** /apis/storage.k8s.io/v1/volumeattributesclasses | [**patchCSIDriver**](StorageV1Api.md#patchCSIDriver) | **PATCH** /apis/storage.k8s.io/v1/csidrivers/{name} | [**patchCSINode**](StorageV1Api.md#patchCSINode) | **PATCH** /apis/storage.k8s.io/v1/csinodes/{name} | [**patchNamespacedCSIStorageCapacity**](StorageV1Api.md#patchNamespacedCSIStorageCapacity) | **PATCH** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name} | [**patchStorageClass**](StorageV1Api.md#patchStorageClass) | **PATCH** /apis/storage.k8s.io/v1/storageclasses/{name} | [**patchVolumeAttachment**](StorageV1Api.md#patchVolumeAttachment) | **PATCH** /apis/storage.k8s.io/v1/volumeattachments/{name} | [**patchVolumeAttachmentStatus**](StorageV1Api.md#patchVolumeAttachmentStatus) | **PATCH** /apis/storage.k8s.io/v1/volumeattachments/{name}/status | +[**patchVolumeAttributesClass**](StorageV1Api.md#patchVolumeAttributesClass) | **PATCH** /apis/storage.k8s.io/v1/volumeattributesclasses/{name} | [**readCSIDriver**](StorageV1Api.md#readCSIDriver) | **GET** /apis/storage.k8s.io/v1/csidrivers/{name} | [**readCSINode**](StorageV1Api.md#readCSINode) | **GET** /apis/storage.k8s.io/v1/csinodes/{name} | [**readNamespacedCSIStorageCapacity**](StorageV1Api.md#readNamespacedCSIStorageCapacity) | **GET** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name} | [**readStorageClass**](StorageV1Api.md#readStorageClass) | **GET** /apis/storage.k8s.io/v1/storageclasses/{name} | [**readVolumeAttachment**](StorageV1Api.md#readVolumeAttachment) | **GET** /apis/storage.k8s.io/v1/volumeattachments/{name} | [**readVolumeAttachmentStatus**](StorageV1Api.md#readVolumeAttachmentStatus) | **GET** /apis/storage.k8s.io/v1/volumeattachments/{name}/status | +[**readVolumeAttributesClass**](StorageV1Api.md#readVolumeAttributesClass) | **GET** /apis/storage.k8s.io/v1/volumeattributesclasses/{name} | [**replaceCSIDriver**](StorageV1Api.md#replaceCSIDriver) | **PUT** /apis/storage.k8s.io/v1/csidrivers/{name} | [**replaceCSINode**](StorageV1Api.md#replaceCSINode) | **PUT** /apis/storage.k8s.io/v1/csinodes/{name} | [**replaceNamespacedCSIStorageCapacity**](StorageV1Api.md#replaceNamespacedCSIStorageCapacity) | **PUT** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name} | [**replaceStorageClass**](StorageV1Api.md#replaceStorageClass) | **PUT** /apis/storage.k8s.io/v1/storageclasses/{name} | [**replaceVolumeAttachment**](StorageV1Api.md#replaceVolumeAttachment) | **PUT** /apis/storage.k8s.io/v1/volumeattachments/{name} | [**replaceVolumeAttachmentStatus**](StorageV1Api.md#replaceVolumeAttachmentStatus) | **PUT** /apis/storage.k8s.io/v1/volumeattachments/{name}/status | +[**replaceVolumeAttributesClass**](StorageV1Api.md#replaceVolumeAttributesClass) | **PUT** /apis/storage.k8s.io/v1/volumeattributesclasses/{name} | # **createCSIDriver** @@ -111,6 +118,7 @@ const request: StorageV1ApiCreateCSIDriverRequest = { spec: { attachRequired: true, fsGroupPolicy: "fsGroupPolicy_example", + nodeAllocatableUpdatePeriodSeconds: 1, podInfoOnMount: true, requiresRepublish: true, seLinuxMount: true, @@ -901,6 +909,7 @@ const request: StorageV1ApiCreateVolumeAttachmentRequest = { }, status: { attachError: { + errorCode: 1, message: "message_example", time: new Date('1970-01-01T00:00:00.00Z'), }, @@ -909,6 +918,7 @@ const request: StorageV1ApiCreateVolumeAttachmentRequest = { "key": "key_example", }, detachError: { + errorCode: 1, message: "message_example", time: new Date('1970-01-01T00:00:00.00Z'), }, @@ -954,6 +964,123 @@ Name | Type | Description | Notes - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **createVolumeAttributesClass** +> V1VolumeAttributesClass createVolumeAttributesClass(body) + +create a VolumeAttributesClass + +### Example + + +```typescript +import { createConfiguration, StorageV1Api } from ''; +import type { StorageV1ApiCreateVolumeAttributesClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new StorageV1Api(configuration); + +const request: StorageV1ApiCreateVolumeAttributesClassRequest = { + + body: { + apiVersion: "apiVersion_example", + driverName: "driverName_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + parameters: { + "key": "key_example", + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.createVolumeAttributesClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1VolumeAttributesClass**| | + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1VolumeAttributesClass** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| @@ -1654,6 +1781,116 @@ console.log('API called successfully. Returned data:', data); ``` +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + + +### Return type + +**V1Status** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteCollectionVolumeAttributesClass** +> V1Status deleteCollectionVolumeAttributesClass() + +delete collection of VolumeAttributesClass + +### Example + + +```typescript +import { createConfiguration, StorageV1Api } from ''; +import type { StorageV1ApiDeleteCollectionVolumeAttributesClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new StorageV1Api(configuration); + +const request: StorageV1ApiDeleteCollectionVolumeAttributesClassRequest = { + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteCollectionVolumeAttributesClass(request); +console.log('API called successfully. Returned data:', data); +``` + + ### Parameters Name | Type | Description | Notes @@ -1961,6 +2198,96 @@ Name | Type | Description | Notes - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **deleteVolumeAttributesClass** +> V1VolumeAttributesClass deleteVolumeAttributesClass() + +delete a VolumeAttributesClass + +### Example + + +```typescript +import { createConfiguration, StorageV1Api } from ''; +import type { StorageV1ApiDeleteVolumeAttributesClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new StorageV1Api(configuration); + +const request: StorageV1ApiDeleteVolumeAttributesClassRequest = { + // name of the VolumeAttributesClass + name: "name_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + gracePeriodSeconds: 1, + // if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + ignoreStoreReadErrorWithClusterBreakingPotential: true, + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + orphanDependents: true, + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. (optional) + propagationPolicy: "propagationPolicy_example", + + body: { + apiVersion: "apiVersion_example", + dryRun: [ + "dryRun_example", + ], + gracePeriodSeconds: 1, + ignoreStoreReadErrorWithClusterBreakingPotential: true, + kind: "kind_example", + orphanDependents: true, + preconditions: { + resourceVersion: "resourceVersion_example", + uid: "uid_example", + }, + propagationPolicy: "propagationPolicy_example", + }, +}; + +const data = await apiInstance.deleteVolumeAttributesClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1DeleteOptions**| | + **name** | [**string**] | name of the VolumeAttributesClass | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **gracePeriodSeconds** | [**number**] | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | (optional) defaults to undefined + **ignoreStoreReadErrorWithClusterBreakingPotential** | [**boolean**] | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | (optional) defaults to undefined + **orphanDependents** | [**boolean**] | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. | (optional) defaults to undefined + **propagationPolicy** | [**string**] | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. | (optional) defaults to undefined + + +### Return type + +**V1VolumeAttributesClass** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| @@ -2272,21 +2599,106 @@ Name | Type | Description | Notes # **listNamespacedCSIStorageCapacity** > V1CSIStorageCapacityList listNamespacedCSIStorageCapacity() -list or watch objects of kind CSIStorageCapacity +list or watch objects of kind CSIStorageCapacity + +### Example + + +```typescript +import { createConfiguration, StorageV1Api } from ''; +import type { StorageV1ApiListNamespacedCSIStorageCapacityRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new StorageV1Api(configuration); + +const request: StorageV1ApiListNamespacedCSIStorageCapacityRequest = { + // object name and auth scope, such as for teams and projects + namespace: "namespace_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + allowWatchBookmarks: true, + // The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + _continue: "continue_example", + // A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + fieldSelector: "fieldSelector_example", + // A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + labelSelector: "labelSelector_example", + // limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + limit: 1, + // resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersion: "resourceVersion_example", + // resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch: "resourceVersionMatch_example", + // `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + sendInitialEvents: true, + // Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + timeoutSeconds: 1, + // Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + watch: true, +}; + +const data = await apiInstance.listNamespacedCSIStorageCapacity(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined + **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined + **fieldSelector** | [**string**] | A selector to restrict the list of returned objects by their fields. Defaults to everything. | (optional) defaults to undefined + **labelSelector** | [**string**] | A selector to restrict the list of returned objects by their labels. Defaults to everything. | (optional) defaults to undefined + **limit** | [**number**] | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | (optional) defaults to undefined + **resourceVersion** | [**string**] | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **resourceVersionMatch** | [**string**] | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | (optional) defaults to undefined + **sendInitialEvents** | [**boolean**] | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | (optional) defaults to undefined + **timeoutSeconds** | [**number**] | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | (optional) defaults to undefined + **watch** | [**boolean**] | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | (optional) defaults to undefined + + +### Return type + +**V1CSIStorageCapacityList** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **listStorageClass** +> V1StorageClassList listStorageClass() + +list or watch objects of kind StorageClass ### Example ```typescript import { createConfiguration, StorageV1Api } from ''; -import type { StorageV1ApiListNamespacedCSIStorageCapacityRequest } from ''; +import type { StorageV1ApiListStorageClassRequest } from ''; const configuration = createConfiguration(); const apiInstance = new StorageV1Api(configuration); -const request: StorageV1ApiListNamespacedCSIStorageCapacityRequest = { - // object name and auth scope, such as for teams and projects - namespace: "namespace_example", +const request: StorageV1ApiListStorageClassRequest = { // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) @@ -2311,7 +2723,7 @@ const request: StorageV1ApiListNamespacedCSIStorageCapacityRequest = { watch: true, }; -const data = await apiInstance.listNamespacedCSIStorageCapacity(request); +const data = await apiInstance.listStorageClass(request); console.log('API called successfully. Returned data:', data); ``` @@ -2320,7 +2732,6 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **namespace** | [**string**] | object name and auth scope, such as for teams and projects | defaults to undefined **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined **allowWatchBookmarks** | [**boolean**] | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | (optional) defaults to undefined **_continue** | [**string**] | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | (optional) defaults to undefined @@ -2336,7 +2747,7 @@ Name | Type | Description | Notes ### Return type -**V1CSIStorageCapacityList** +**V1StorageClassList** ### Authorization @@ -2356,22 +2767,22 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **listStorageClass** -> V1StorageClassList listStorageClass() +# **listVolumeAttachment** +> V1VolumeAttachmentList listVolumeAttachment() -list or watch objects of kind StorageClass +list or watch objects of kind VolumeAttachment ### Example ```typescript import { createConfiguration, StorageV1Api } from ''; -import type { StorageV1ApiListStorageClassRequest } from ''; +import type { StorageV1ApiListVolumeAttachmentRequest } from ''; const configuration = createConfiguration(); const apiInstance = new StorageV1Api(configuration); -const request: StorageV1ApiListStorageClassRequest = { +const request: StorageV1ApiListVolumeAttachmentRequest = { // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) @@ -2396,7 +2807,7 @@ const request: StorageV1ApiListStorageClassRequest = { watch: true, }; -const data = await apiInstance.listStorageClass(request); +const data = await apiInstance.listVolumeAttachment(request); console.log('API called successfully. Returned data:', data); ``` @@ -2420,7 +2831,7 @@ Name | Type | Description | Notes ### Return type -**V1StorageClassList** +**V1VolumeAttachmentList** ### Authorization @@ -2440,22 +2851,22 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **listVolumeAttachment** -> V1VolumeAttachmentList listVolumeAttachment() +# **listVolumeAttributesClass** +> V1VolumeAttributesClassList listVolumeAttributesClass() -list or watch objects of kind VolumeAttachment +list or watch objects of kind VolumeAttributesClass ### Example ```typescript import { createConfiguration, StorageV1Api } from ''; -import type { StorageV1ApiListVolumeAttachmentRequest } from ''; +import type { StorageV1ApiListVolumeAttributesClassRequest } from ''; const configuration = createConfiguration(); const apiInstance = new StorageV1Api(configuration); -const request: StorageV1ApiListVolumeAttachmentRequest = { +const request: StorageV1ApiListVolumeAttributesClassRequest = { // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) pretty: "pretty_example", // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) @@ -2480,7 +2891,7 @@ const request: StorageV1ApiListVolumeAttachmentRequest = { watch: true, }; -const data = await apiInstance.listVolumeAttachment(request); +const data = await apiInstance.listVolumeAttributesClass(request); console.log('API called successfully. Returned data:', data); ``` @@ -2504,7 +2915,7 @@ Name | Type | Description | Notes ### Return type -**V1VolumeAttachmentList** +**V1VolumeAttributesClassList** ### Authorization @@ -2956,6 +3367,79 @@ Name | Type | Description | Notes - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **patchVolumeAttributesClass** +> V1VolumeAttributesClass patchVolumeAttributesClass(body) + +partially update the specified VolumeAttributesClass + +### Example + + +```typescript +import { createConfiguration, StorageV1Api } from ''; +import type { StorageV1ApiPatchVolumeAttributesClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new StorageV1Api(configuration); + +const request: StorageV1ApiPatchVolumeAttributesClassRequest = { + // name of the VolumeAttributesClass + name: "name_example", + + body: {}, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", + // Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + force: true, +}; + +const data = await apiInstance.patchVolumeAttributesClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **any**| | + **name** | [**string**] | name of the VolumeAttributesClass | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + **force** | [**boolean**] | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | (optional) defaults to undefined + + +### Return type + +**V1VolumeAttributesClass** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml, application/apply-patch+cbor + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| @@ -3302,6 +3786,63 @@ Name | Type | Description | Notes - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + +# **readVolumeAttributesClass** +> V1VolumeAttributesClass readVolumeAttributesClass() + +read the specified VolumeAttributesClass + +### Example + + +```typescript +import { createConfiguration, StorageV1Api } from ''; +import type { StorageV1ApiReadVolumeAttributesClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new StorageV1Api(configuration); + +const request: StorageV1ApiReadVolumeAttributesClassRequest = { + // name of the VolumeAttributesClass + name: "name_example", + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", +}; + +const data = await apiInstance.readVolumeAttributesClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | [**string**] | name of the VolumeAttributesClass | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + + +### Return type + +**V1VolumeAttributesClass** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| @@ -3377,6 +3918,7 @@ const request: StorageV1ApiReplaceCSIDriverRequest = { spec: { attachRequired: true, fsGroupPolicy: "fsGroupPolicy_example", + nodeAllocatableUpdatePeriodSeconds: 1, podInfoOnMount: true, requiresRepublish: true, seLinuxMount: true, @@ -4175,6 +4717,7 @@ const request: StorageV1ApiReplaceVolumeAttachmentRequest = { }, status: { attachError: { + errorCode: 1, message: "message_example", time: new Date('1970-01-01T00:00:00.00Z'), }, @@ -4183,6 +4726,7 @@ const request: StorageV1ApiReplaceVolumeAttachmentRequest = { "key": "key_example", }, detachError: { + errorCode: 1, message: "message_example", time: new Date('1970-01-01T00:00:00.00Z'), }, @@ -4570,6 +5114,7 @@ const request: StorageV1ApiReplaceVolumeAttachmentStatusRequest = { }, status: { attachError: { + errorCode: 1, message: "message_example", time: new Date('1970-01-01T00:00:00.00Z'), }, @@ -4578,6 +5123,7 @@ const request: StorageV1ApiReplaceVolumeAttachmentStatusRequest = { "key": "key_example", }, detachError: { + errorCode: 1, message: "message_example", time: new Date('1970-01-01T00:00:00.00Z'), }, @@ -4633,4 +5179,123 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) +# **replaceVolumeAttributesClass** +> V1VolumeAttributesClass replaceVolumeAttributesClass(body) + +replace the specified VolumeAttributesClass + +### Example + + +```typescript +import { createConfiguration, StorageV1Api } from ''; +import type { StorageV1ApiReplaceVolumeAttributesClassRequest } from ''; + +const configuration = createConfiguration(); +const apiInstance = new StorageV1Api(configuration); + +const request: StorageV1ApiReplaceVolumeAttributesClassRequest = { + // name of the VolumeAttributesClass + name: "name_example", + + body: { + apiVersion: "apiVersion_example", + driverName: "driverName_example", + kind: "kind_example", + metadata: { + annotations: { + "key": "key_example", + }, + creationTimestamp: new Date('1970-01-01T00:00:00.00Z'), + deletionGracePeriodSeconds: 1, + deletionTimestamp: new Date('1970-01-01T00:00:00.00Z'), + finalizers: [ + "finalizers_example", + ], + generateName: "generateName_example", + generation: 1, + labels: { + "key": "key_example", + }, + managedFields: [ + { + apiVersion: "apiVersion_example", + fieldsType: "fieldsType_example", + fieldsV1: {}, + manager: "manager_example", + operation: "operation_example", + subresource: "subresource_example", + time: new Date('1970-01-01T00:00:00.00Z'), + }, + ], + name: "name_example", + namespace: "namespace_example", + ownerReferences: [ + { + apiVersion: "apiVersion_example", + blockOwnerDeletion: true, + controller: true, + kind: "kind_example", + name: "name_example", + uid: "uid_example", + }, + ], + resourceVersion: "resourceVersion_example", + selfLink: "selfLink_example", + uid: "uid_example", + }, + parameters: { + "key": "key_example", + }, + }, + // If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + pretty: "pretty_example", + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + dryRun: "dryRun_example", + // fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldManager: "fieldManager_example", + // fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + fieldValidation: "fieldValidation_example", +}; + +const data = await apiInstance.replaceVolumeAttributesClass(request); +console.log('API called successfully. Returned data:', data); +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **V1VolumeAttributesClass**| | + **name** | [**string**] | name of the VolumeAttributesClass | defaults to undefined + **pretty** | [**string**] | If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | (optional) defaults to undefined + **dryRun** | [**string**] | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | (optional) defaults to undefined + **fieldManager** | [**string**] | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | (optional) defaults to undefined + **fieldValidation** | [**string**] | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | (optional) defaults to undefined + + +### Return type + +**V1VolumeAttributesClass** + +### Authorization + +[BearerToken](README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) + diff --git a/src/gen/VersionApi.md b/src/gen/VersionApi.md index e13a6d0b82..4c7dc72758 100644 --- a/src/gen/VersionApi.md +++ b/src/gen/VersionApi.md @@ -10,7 +10,7 @@ Method | HTTP request | Description # **getCode** > VersionInfo getCode() -get the code version +get the version information for this server ### Example diff --git a/src/gen/apis/AdmissionregistrationApi.ts b/src/gen/apis/AdmissionregistrationApi.ts index f677520bb6..95c30bbda8 100644 --- a/src/gen/apis/AdmissionregistrationApi.ts +++ b/src/gen/apis/AdmissionregistrationApi.ts @@ -38,7 +38,7 @@ export class AdmissionregistrationApiRequestFactory extends BaseAPIRequestFactor await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/AdmissionregistrationV1Api.ts b/src/gen/apis/AdmissionregistrationV1Api.ts index 1496de4c90..3c43a4c42c 100644 --- a/src/gen/apis/AdmissionregistrationV1Api.ts +++ b/src/gen/apis/AdmissionregistrationV1Api.ts @@ -92,7 +92,7 @@ export class AdmissionregistrationV1ApiRequestFactory extends BaseAPIRequestFact await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -165,7 +165,7 @@ export class AdmissionregistrationV1ApiRequestFactory extends BaseAPIRequestFact await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -238,7 +238,7 @@ export class AdmissionregistrationV1ApiRequestFactory extends BaseAPIRequestFact await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -311,7 +311,7 @@ export class AdmissionregistrationV1ApiRequestFactory extends BaseAPIRequestFact await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -449,7 +449,7 @@ export class AdmissionregistrationV1ApiRequestFactory extends BaseAPIRequestFact await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -587,7 +587,7 @@ export class AdmissionregistrationV1ApiRequestFactory extends BaseAPIRequestFact await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -725,7 +725,7 @@ export class AdmissionregistrationV1ApiRequestFactory extends BaseAPIRequestFact await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -863,7 +863,7 @@ export class AdmissionregistrationV1ApiRequestFactory extends BaseAPIRequestFact await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -953,7 +953,7 @@ export class AdmissionregistrationV1ApiRequestFactory extends BaseAPIRequestFact await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1043,7 +1043,7 @@ export class AdmissionregistrationV1ApiRequestFactory extends BaseAPIRequestFact await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1133,7 +1133,7 @@ export class AdmissionregistrationV1ApiRequestFactory extends BaseAPIRequestFact await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1223,7 +1223,7 @@ export class AdmissionregistrationV1ApiRequestFactory extends BaseAPIRequestFact await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1252,7 +1252,7 @@ export class AdmissionregistrationV1ApiRequestFactory extends BaseAPIRequestFact await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1358,7 +1358,7 @@ export class AdmissionregistrationV1ApiRequestFactory extends BaseAPIRequestFact await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1464,7 +1464,7 @@ export class AdmissionregistrationV1ApiRequestFactory extends BaseAPIRequestFact await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1570,7 +1570,7 @@ export class AdmissionregistrationV1ApiRequestFactory extends BaseAPIRequestFact await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1676,7 +1676,7 @@ export class AdmissionregistrationV1ApiRequestFactory extends BaseAPIRequestFact await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1774,7 +1774,7 @@ export class AdmissionregistrationV1ApiRequestFactory extends BaseAPIRequestFact await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1872,7 +1872,7 @@ export class AdmissionregistrationV1ApiRequestFactory extends BaseAPIRequestFact await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1970,7 +1970,7 @@ export class AdmissionregistrationV1ApiRequestFactory extends BaseAPIRequestFact await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2068,7 +2068,7 @@ export class AdmissionregistrationV1ApiRequestFactory extends BaseAPIRequestFact await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2166,7 +2166,7 @@ export class AdmissionregistrationV1ApiRequestFactory extends BaseAPIRequestFact await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2210,7 +2210,7 @@ export class AdmissionregistrationV1ApiRequestFactory extends BaseAPIRequestFact await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2254,7 +2254,7 @@ export class AdmissionregistrationV1ApiRequestFactory extends BaseAPIRequestFact await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2298,7 +2298,7 @@ export class AdmissionregistrationV1ApiRequestFactory extends BaseAPIRequestFact await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2342,7 +2342,7 @@ export class AdmissionregistrationV1ApiRequestFactory extends BaseAPIRequestFact await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2386,7 +2386,7 @@ export class AdmissionregistrationV1ApiRequestFactory extends BaseAPIRequestFact await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2467,7 +2467,7 @@ export class AdmissionregistrationV1ApiRequestFactory extends BaseAPIRequestFact await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2548,7 +2548,7 @@ export class AdmissionregistrationV1ApiRequestFactory extends BaseAPIRequestFact await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2629,7 +2629,7 @@ export class AdmissionregistrationV1ApiRequestFactory extends BaseAPIRequestFact await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2710,7 +2710,7 @@ export class AdmissionregistrationV1ApiRequestFactory extends BaseAPIRequestFact await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2791,7 +2791,7 @@ export class AdmissionregistrationV1ApiRequestFactory extends BaseAPIRequestFact await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/AdmissionregistrationV1alpha1Api.ts b/src/gen/apis/AdmissionregistrationV1alpha1Api.ts index 786b924225..7f8afdd239 100644 --- a/src/gen/apis/AdmissionregistrationV1alpha1Api.ts +++ b/src/gen/apis/AdmissionregistrationV1alpha1Api.ts @@ -88,7 +88,7 @@ export class AdmissionregistrationV1alpha1ApiRequestFactory extends BaseAPIReque await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -161,7 +161,7 @@ export class AdmissionregistrationV1alpha1ApiRequestFactory extends BaseAPIReque await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -299,7 +299,7 @@ export class AdmissionregistrationV1alpha1ApiRequestFactory extends BaseAPIReque await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -437,7 +437,7 @@ export class AdmissionregistrationV1alpha1ApiRequestFactory extends BaseAPIReque await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -527,7 +527,7 @@ export class AdmissionregistrationV1alpha1ApiRequestFactory extends BaseAPIReque await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -617,7 +617,7 @@ export class AdmissionregistrationV1alpha1ApiRequestFactory extends BaseAPIReque await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -646,7 +646,7 @@ export class AdmissionregistrationV1alpha1ApiRequestFactory extends BaseAPIReque await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -752,7 +752,7 @@ export class AdmissionregistrationV1alpha1ApiRequestFactory extends BaseAPIReque await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -858,7 +858,7 @@ export class AdmissionregistrationV1alpha1ApiRequestFactory extends BaseAPIReque await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -956,7 +956,7 @@ export class AdmissionregistrationV1alpha1ApiRequestFactory extends BaseAPIReque await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1054,7 +1054,7 @@ export class AdmissionregistrationV1alpha1ApiRequestFactory extends BaseAPIReque await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1098,7 +1098,7 @@ export class AdmissionregistrationV1alpha1ApiRequestFactory extends BaseAPIReque await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1142,7 +1142,7 @@ export class AdmissionregistrationV1alpha1ApiRequestFactory extends BaseAPIReque await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1223,7 +1223,7 @@ export class AdmissionregistrationV1alpha1ApiRequestFactory extends BaseAPIReque await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1304,7 +1304,7 @@ export class AdmissionregistrationV1alpha1ApiRequestFactory extends BaseAPIReque await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/AdmissionregistrationV1beta1Api.ts b/src/gen/apis/AdmissionregistrationV1beta1Api.ts index 0b29157e60..c2cc1c5bbc 100644 --- a/src/gen/apis/AdmissionregistrationV1beta1Api.ts +++ b/src/gen/apis/AdmissionregistrationV1beta1Api.ts @@ -13,10 +13,10 @@ import {SecurityAuthentication} from '../auth/auth.js'; import { V1APIResourceList } from '../models/V1APIResourceList.js'; import { V1DeleteOptions } from '../models/V1DeleteOptions.js'; import { V1Status } from '../models/V1Status.js'; -import { V1beta1ValidatingAdmissionPolicy } from '../models/V1beta1ValidatingAdmissionPolicy.js'; -import { V1beta1ValidatingAdmissionPolicyBinding } from '../models/V1beta1ValidatingAdmissionPolicyBinding.js'; -import { V1beta1ValidatingAdmissionPolicyBindingList } from '../models/V1beta1ValidatingAdmissionPolicyBindingList.js'; -import { V1beta1ValidatingAdmissionPolicyList } from '../models/V1beta1ValidatingAdmissionPolicyList.js'; +import { V1beta1MutatingAdmissionPolicy } from '../models/V1beta1MutatingAdmissionPolicy.js'; +import { V1beta1MutatingAdmissionPolicyBinding } from '../models/V1beta1MutatingAdmissionPolicyBinding.js'; +import { V1beta1MutatingAdmissionPolicyBindingList } from '../models/V1beta1MutatingAdmissionPolicyBindingList.js'; +import { V1beta1MutatingAdmissionPolicyList } from '../models/V1beta1MutatingAdmissionPolicyList.js'; /** * no description @@ -24,19 +24,19 @@ import { V1beta1ValidatingAdmissionPolicyList } from '../models/V1beta1Validatin export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIRequestFactory { /** - * create a ValidatingAdmissionPolicy + * create a MutatingAdmissionPolicy * @param body * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. */ - public async createValidatingAdmissionPolicy(body: V1beta1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + public async createMutatingAdmissionPolicy(body: V1beta1MutatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "createValidatingAdmissionPolicy", "body"); + throw new RequiredError("AdmissionregistrationV1beta1Api", "createMutatingAdmissionPolicy", "body"); } @@ -45,7 +45,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies'; + const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies'; // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); @@ -76,7 +76,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques const contentType = ObjectSerializer.getPreferredMediaType([]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1beta1ValidatingAdmissionPolicy", ""), + ObjectSerializer.serialize(body, "V1beta1MutatingAdmissionPolicy", ""), contentType ); requestContext.setBody(serializedBody); @@ -88,7 +88,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -97,19 +97,19 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques } /** - * create a ValidatingAdmissionPolicyBinding + * create a MutatingAdmissionPolicyBinding * @param body * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. */ - public async createValidatingAdmissionPolicyBinding(body: V1beta1ValidatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + public async createMutatingAdmissionPolicyBinding(body: V1beta1MutatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "createValidatingAdmissionPolicyBinding", "body"); + throw new RequiredError("AdmissionregistrationV1beta1Api", "createMutatingAdmissionPolicyBinding", "body"); } @@ -118,7 +118,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings'; + const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings'; // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); @@ -149,7 +149,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques const contentType = ObjectSerializer.getPreferredMediaType([]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1beta1ValidatingAdmissionPolicyBinding", ""), + ObjectSerializer.serialize(body, "V1beta1MutatingAdmissionPolicyBinding", ""), contentType ); requestContext.setBody(serializedBody); @@ -161,7 +161,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -170,7 +170,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques } /** - * delete collection of ValidatingAdmissionPolicy + * delete collection of MutatingAdmissionPolicy * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -187,7 +187,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public async deleteCollectionValidatingAdmissionPolicy(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + public async deleteCollectionMutatingAdmissionPolicy(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { let _config = _options || this.configuration; @@ -206,7 +206,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies'; + const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies'; // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); @@ -299,7 +299,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -308,7 +308,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques } /** - * delete collection of ValidatingAdmissionPolicyBinding + * delete collection of MutatingAdmissionPolicyBinding * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -325,7 +325,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public async deleteCollectionValidatingAdmissionPolicyBinding(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + public async deleteCollectionMutatingAdmissionPolicyBinding(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { let _config = _options || this.configuration; @@ -344,7 +344,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings'; + const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings'; // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); @@ -437,7 +437,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -446,8 +446,8 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques } /** - * delete a ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy + * delete a MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. @@ -456,12 +456,12 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public async deleteValidatingAdmissionPolicy(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + public async deleteMutatingAdmissionPolicy(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "deleteValidatingAdmissionPolicy", "name"); + throw new RequiredError("AdmissionregistrationV1beta1Api", "deleteMutatingAdmissionPolicy", "name"); } @@ -473,7 +473,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}' + const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name}' .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context @@ -527,7 +527,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -536,8 +536,8 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques } /** - * delete a ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding + * delete a MutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. @@ -546,12 +546,12 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public async deleteValidatingAdmissionPolicyBinding(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + public async deleteMutatingAdmissionPolicyBinding(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "deleteValidatingAdmissionPolicyBinding", "name"); + throw new RequiredError("AdmissionregistrationV1beta1Api", "deleteMutatingAdmissionPolicyBinding", "name"); } @@ -563,7 +563,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name}' + const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name}' .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context @@ -617,7 +617,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -646,7 +646,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -655,7 +655,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques } /** - * list or watch objects of kind ValidatingAdmissionPolicy + * list or watch objects of kind MutatingAdmissionPolicy * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. @@ -668,7 +668,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public async listValidatingAdmissionPolicy(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + public async listMutatingAdmissionPolicy(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { let _config = _options || this.configuration; @@ -683,7 +683,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies'; + const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies'; // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); @@ -752,7 +752,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -761,7 +761,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques } /** - * list or watch objects of kind ValidatingAdmissionPolicyBinding + * list or watch objects of kind MutatingAdmissionPolicyBinding * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. @@ -774,7 +774,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public async listValidatingAdmissionPolicyBinding(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + public async listMutatingAdmissionPolicyBinding(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { let _config = _options || this.configuration; @@ -789,7 +789,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings'; + const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings'; // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); @@ -858,7 +858,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -867,8 +867,8 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques } /** - * partially update the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy + * partially update the specified MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy * @param body * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -876,18 +876,18 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public async patchValidatingAdmissionPolicy(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + public async patchMutatingAdmissionPolicy(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "patchValidatingAdmissionPolicy", "name"); + throw new RequiredError("AdmissionregistrationV1beta1Api", "patchMutatingAdmissionPolicy", "name"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "patchValidatingAdmissionPolicy", "body"); + throw new RequiredError("AdmissionregistrationV1beta1Api", "patchMutatingAdmissionPolicy", "body"); } @@ -897,7 +897,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}' + const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name}' .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context @@ -956,7 +956,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -965,8 +965,8 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques } /** - * partially update the specified ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding + * partially update the specified MutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding * @param body * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -974,18 +974,18 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public async patchValidatingAdmissionPolicyBinding(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + public async patchMutatingAdmissionPolicyBinding(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "patchValidatingAdmissionPolicyBinding", "name"); + throw new RequiredError("AdmissionregistrationV1beta1Api", "patchMutatingAdmissionPolicyBinding", "name"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "patchValidatingAdmissionPolicyBinding", "body"); + throw new RequiredError("AdmissionregistrationV1beta1Api", "patchMutatingAdmissionPolicyBinding", "body"); } @@ -995,7 +995,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name}' + const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name}' .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context @@ -1054,7 +1054,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1063,164 +1063,22 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques } /** - * partially update status of the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy - * @param body + * read the specified MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public async patchValidatingAdmissionPolicyStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + public async readMutatingAdmissionPolicy(name: string, pretty?: string, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "patchValidatingAdmissionPolicyStatus", "name"); - } - - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "patchValidatingAdmissionPolicyStatus", "body"); + throw new RequiredError("AdmissionregistrationV1beta1Api", "readMutatingAdmissionPolicy", "name"); } - - - - // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - // Query Params - if (force !== undefined) { - requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json-patch+json", - - "application/merge-patch+json", - - "application/strategic-merge-patch+json", - - "application/apply-patch+yaml", - - "application/apply-patch+cbor" - ]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "any", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * read the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - */ - public async readValidatingAdmissionPolicy(name: string, pretty?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "readValidatingAdmissionPolicy", "name"); - } - - - - // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * read the specified ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - */ - public async readValidatingAdmissionPolicyBinding(name: string, pretty?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "readValidatingAdmissionPolicyBinding", "name"); - } - - - - // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name}' + const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name}' .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context @@ -1240,7 +1098,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1249,22 +1107,22 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques } /** - * read status of the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy + * read the specified MutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public async readValidatingAdmissionPolicyStatus(name: string, pretty?: string, _options?: Configuration): Promise { + public async readMutatingAdmissionPolicyBinding(name: string, pretty?: string, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "readValidatingAdmissionPolicyStatus", "name"); + throw new RequiredError("AdmissionregistrationV1beta1Api", "readMutatingAdmissionPolicyBinding", "name"); } // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status' + const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name}' .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context @@ -1284,88 +1142,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * replace the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy - * @param body - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - */ - public async replaceValidatingAdmissionPolicy(name: string, body: V1beta1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "replaceValidatingAdmissionPolicy", "name"); - } - - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "replaceValidatingAdmissionPolicy", "body"); - } - - - - - - - // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1beta1ValidatingAdmissionPolicy", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1374,26 +1151,26 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques } /** - * replace the specified ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding + * replace the specified MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy * @param body * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. */ - public async replaceValidatingAdmissionPolicyBinding(name: string, body: V1beta1ValidatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + public async replaceMutatingAdmissionPolicy(name: string, body: V1beta1MutatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "replaceValidatingAdmissionPolicyBinding", "name"); + throw new RequiredError("AdmissionregistrationV1beta1Api", "replaceMutatingAdmissionPolicy", "name"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "replaceValidatingAdmissionPolicyBinding", "body"); + throw new RequiredError("AdmissionregistrationV1beta1Api", "replaceMutatingAdmissionPolicy", "body"); } @@ -1402,7 +1179,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name}' + const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name}' .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context @@ -1434,7 +1211,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques const contentType = ObjectSerializer.getPreferredMediaType([]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1beta1ValidatingAdmissionPolicyBinding", ""), + ObjectSerializer.serialize(body, "V1beta1MutatingAdmissionPolicy", ""), contentType ); requestContext.setBody(serializedBody); @@ -1446,7 +1223,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1455,26 +1232,26 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques } /** - * replace status of the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy + * replace the specified MutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding * @param body * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. */ - public async replaceValidatingAdmissionPolicyStatus(name: string, body: V1beta1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + public async replaceMutatingAdmissionPolicyBinding(name: string, body: V1beta1MutatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "replaceValidatingAdmissionPolicyStatus", "name"); + throw new RequiredError("AdmissionregistrationV1beta1Api", "replaceMutatingAdmissionPolicyBinding", "name"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("AdmissionregistrationV1beta1Api", "replaceValidatingAdmissionPolicyStatus", "body"); + throw new RequiredError("AdmissionregistrationV1beta1Api", "replaceMutatingAdmissionPolicyBinding", "body"); } @@ -1483,7 +1260,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques // Path Params - const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status' + const localVarPath = '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name}' .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context @@ -1515,7 +1292,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques const contentType = ObjectSerializer.getPreferredMediaType([]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1beta1ValidatingAdmissionPolicy", ""), + ObjectSerializer.serialize(body, "V1beta1MutatingAdmissionPolicyBinding", ""), contentType ); requestContext.setBody(serializedBody); @@ -1527,7 +1304,7 @@ export class AdmissionregistrationV1beta1ApiRequestFactory extends BaseAPIReques await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1543,30 +1320,30 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to createValidatingAdmissionPolicy + * @params response Response returned by the server for a request to createMutatingAdmissionPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async createValidatingAdmissionPolicyWithHttpInfo(response: ResponseContext): Promise> { + public async createMutatingAdmissionPolicyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicy", "" + ) as V1beta1MutatingAdmissionPolicy; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicy", "" + ) as V1beta1MutatingAdmissionPolicy; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicy", "" + ) as V1beta1MutatingAdmissionPolicy; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -1575,10 +1352,10 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicy", "" + ) as V1beta1MutatingAdmissionPolicy; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -1589,30 +1366,30 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to createValidatingAdmissionPolicyBinding + * @params response Response returned by the server for a request to createMutatingAdmissionPolicyBinding * @throws ApiException if the response code was not in [200, 299] */ - public async createValidatingAdmissionPolicyBindingWithHttpInfo(response: ResponseContext): Promise> { + public async createMutatingAdmissionPolicyBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicyBinding = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyBinding", "" - ) as V1beta1ValidatingAdmissionPolicyBinding; + "V1beta1MutatingAdmissionPolicyBinding", "" + ) as V1beta1MutatingAdmissionPolicyBinding; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicyBinding = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyBinding", "" - ) as V1beta1ValidatingAdmissionPolicyBinding; + "V1beta1MutatingAdmissionPolicyBinding", "" + ) as V1beta1MutatingAdmissionPolicyBinding; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicyBinding = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyBinding", "" - ) as V1beta1ValidatingAdmissionPolicyBinding; + "V1beta1MutatingAdmissionPolicyBinding", "" + ) as V1beta1MutatingAdmissionPolicyBinding; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -1621,10 +1398,10 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1beta1ValidatingAdmissionPolicyBinding = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyBinding", "" - ) as V1beta1ValidatingAdmissionPolicyBinding; + "V1beta1MutatingAdmissionPolicyBinding", "" + ) as V1beta1MutatingAdmissionPolicyBinding; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -1635,10 +1412,10 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to deleteCollectionValidatingAdmissionPolicy + * @params response Response returned by the server for a request to deleteCollectionMutatingAdmissionPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionValidatingAdmissionPolicyWithHttpInfo(response: ResponseContext): Promise> { + public async deleteCollectionMutatingAdmissionPolicyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Status = ObjectSerializer.deserialize( @@ -1667,10 +1444,10 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to deleteCollectionValidatingAdmissionPolicyBinding + * @params response Response returned by the server for a request to deleteCollectionMutatingAdmissionPolicyBinding * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(response: ResponseContext): Promise> { + public async deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Status = ObjectSerializer.deserialize( @@ -1699,10 +1476,10 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to deleteValidatingAdmissionPolicy + * @params response Response returned by the server for a request to deleteMutatingAdmissionPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async deleteValidatingAdmissionPolicyWithHttpInfo(response: ResponseContext): Promise> { + public async deleteMutatingAdmissionPolicyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Status = ObjectSerializer.deserialize( @@ -1738,10 +1515,10 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to deleteValidatingAdmissionPolicyBinding + * @params response Response returned by the server for a request to deleteMutatingAdmissionPolicyBinding * @throws ApiException if the response code was not in [200, 299] */ - public async deleteValidatingAdmissionPolicyBindingWithHttpInfo(response: ResponseContext): Promise> { + public async deleteMutatingAdmissionPolicyBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Status = ObjectSerializer.deserialize( @@ -1809,16 +1586,16 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to listValidatingAdmissionPolicy + * @params response Response returned by the server for a request to listMutatingAdmissionPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async listValidatingAdmissionPolicyWithHttpInfo(response: ResponseContext): Promise> { + public async listMutatingAdmissionPolicyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicyList = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyList", "" - ) as V1beta1ValidatingAdmissionPolicyList; + "V1beta1MutatingAdmissionPolicyList", "" + ) as V1beta1MutatingAdmissionPolicyList; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -1827,10 +1604,10 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1beta1ValidatingAdmissionPolicyList = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyList", "" - ) as V1beta1ValidatingAdmissionPolicyList; + "V1beta1MutatingAdmissionPolicyList", "" + ) as V1beta1MutatingAdmissionPolicyList; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -1841,16 +1618,16 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to listValidatingAdmissionPolicyBinding + * @params response Response returned by the server for a request to listMutatingAdmissionPolicyBinding * @throws ApiException if the response code was not in [200, 299] */ - public async listValidatingAdmissionPolicyBindingWithHttpInfo(response: ResponseContext): Promise> { + public async listMutatingAdmissionPolicyBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicyBindingList = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyBindingList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyBindingList", "" - ) as V1beta1ValidatingAdmissionPolicyBindingList; + "V1beta1MutatingAdmissionPolicyBindingList", "" + ) as V1beta1MutatingAdmissionPolicyBindingList; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -1859,10 +1636,10 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1beta1ValidatingAdmissionPolicyBindingList = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyBindingList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyBindingList", "" - ) as V1beta1ValidatingAdmissionPolicyBindingList; + "V1beta1MutatingAdmissionPolicyBindingList", "" + ) as V1beta1MutatingAdmissionPolicyBindingList; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -1873,23 +1650,23 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to patchValidatingAdmissionPolicy + * @params response Response returned by the server for a request to patchMutatingAdmissionPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async patchValidatingAdmissionPolicyWithHttpInfo(response: ResponseContext): Promise> { + public async patchMutatingAdmissionPolicyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicy", "" + ) as V1beta1MutatingAdmissionPolicy; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicy", "" + ) as V1beta1MutatingAdmissionPolicy; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -1898,10 +1675,10 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicy", "" + ) as V1beta1MutatingAdmissionPolicy; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -1912,23 +1689,23 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to patchValidatingAdmissionPolicyBinding + * @params response Response returned by the server for a request to patchMutatingAdmissionPolicyBinding * @throws ApiException if the response code was not in [200, 299] */ - public async patchValidatingAdmissionPolicyBindingWithHttpInfo(response: ResponseContext): Promise> { + public async patchMutatingAdmissionPolicyBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicyBinding = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyBinding", "" - ) as V1beta1ValidatingAdmissionPolicyBinding; + "V1beta1MutatingAdmissionPolicyBinding", "" + ) as V1beta1MutatingAdmissionPolicyBinding; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicyBinding = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyBinding", "" - ) as V1beta1ValidatingAdmissionPolicyBinding; + "V1beta1MutatingAdmissionPolicyBinding", "" + ) as V1beta1MutatingAdmissionPolicyBinding; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -1937,10 +1714,10 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1beta1ValidatingAdmissionPolicyBinding = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyBinding", "" - ) as V1beta1ValidatingAdmissionPolicyBinding; + "V1beta1MutatingAdmissionPolicyBinding", "" + ) as V1beta1MutatingAdmissionPolicyBinding; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -1951,23 +1728,16 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to patchValidatingAdmissionPolicyStatus + * @params response Response returned by the server for a request to readMutatingAdmissionPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async patchValidatingAdmissionPolicyStatusWithHttpInfo(response: ResponseContext): Promise> { + public async readMutatingAdmissionPolicyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicy", "" + ) as V1beta1MutatingAdmissionPolicy; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -1976,10 +1746,10 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicy", "" + ) as V1beta1MutatingAdmissionPolicy; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -1990,119 +1760,16 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to readValidatingAdmissionPolicy + * @params response Response returned by the server for a request to readMutatingAdmissionPolicyBinding * @throws ApiException if the response code was not in [200, 299] */ - public async readValidatingAdmissionPolicyWithHttpInfo(response: ResponseContext): Promise> { + public async readMutatingAdmissionPolicyBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to readValidatingAdmissionPolicyBinding - * @throws ApiException if the response code was not in [200, 299] - */ - public async readValidatingAdmissionPolicyBindingWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicyBinding = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyBinding", "" - ) as V1beta1ValidatingAdmissionPolicyBinding; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1beta1ValidatingAdmissionPolicyBinding = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyBinding", "" - ) as V1beta1ValidatingAdmissionPolicyBinding; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to readValidatingAdmissionPolicyStatus - * @throws ApiException if the response code was not in [200, 299] - */ - public async readValidatingAdmissionPolicyStatusWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to replaceValidatingAdmissionPolicy - * @throws ApiException if the response code was not in [200, 299] - */ - public async replaceValidatingAdmissionPolicyWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicyBinding", "" + ) as V1beta1MutatingAdmissionPolicyBinding; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -2111,10 +1778,10 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicyBinding", "" + ) as V1beta1MutatingAdmissionPolicyBinding; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -2125,23 +1792,23 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to replaceValidatingAdmissionPolicyBinding + * @params response Response returned by the server for a request to replaceMutatingAdmissionPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async replaceValidatingAdmissionPolicyBindingWithHttpInfo(response: ResponseContext): Promise> { + public async replaceMutatingAdmissionPolicyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicyBinding = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyBinding", "" - ) as V1beta1ValidatingAdmissionPolicyBinding; + "V1beta1MutatingAdmissionPolicy", "" + ) as V1beta1MutatingAdmissionPolicy; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicyBinding = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyBinding", "" - ) as V1beta1ValidatingAdmissionPolicyBinding; + "V1beta1MutatingAdmissionPolicy", "" + ) as V1beta1MutatingAdmissionPolicy; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -2150,10 +1817,10 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1beta1ValidatingAdmissionPolicyBinding = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicyBinding", "" - ) as V1beta1ValidatingAdmissionPolicyBinding; + "V1beta1MutatingAdmissionPolicy", "" + ) as V1beta1MutatingAdmissionPolicy; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -2164,23 +1831,23 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to replaceValidatingAdmissionPolicyStatus + * @params response Response returned by the server for a request to replaceMutatingAdmissionPolicyBinding * @throws ApiException if the response code was not in [200, 299] */ - public async replaceValidatingAdmissionPolicyStatusWithHttpInfo(response: ResponseContext): Promise> { + public async replaceMutatingAdmissionPolicyBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicyBinding", "" + ) as V1beta1MutatingAdmissionPolicyBinding; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicyBinding", "" + ) as V1beta1MutatingAdmissionPolicyBinding; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -2189,10 +1856,10 @@ export class AdmissionregistrationV1beta1ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1beta1ValidatingAdmissionPolicy = ObjectSerializer.deserialize( + const body: V1beta1MutatingAdmissionPolicyBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1beta1ValidatingAdmissionPolicy", "" - ) as V1beta1ValidatingAdmissionPolicy; + "V1beta1MutatingAdmissionPolicyBinding", "" + ) as V1beta1MutatingAdmissionPolicyBinding; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } diff --git a/src/gen/apis/ApiextensionsApi.ts b/src/gen/apis/ApiextensionsApi.ts index 625bd938ba..2b1f13e428 100644 --- a/src/gen/apis/ApiextensionsApi.ts +++ b/src/gen/apis/ApiextensionsApi.ts @@ -38,7 +38,7 @@ export class ApiextensionsApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/ApiextensionsV1Api.ts b/src/gen/apis/ApiextensionsV1Api.ts index fd3e484521..00d79fec37 100644 --- a/src/gen/apis/ApiextensionsV1Api.ts +++ b/src/gen/apis/ApiextensionsV1Api.ts @@ -86,7 +86,7 @@ export class ApiextensionsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -224,7 +224,7 @@ export class ApiextensionsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -314,7 +314,7 @@ export class ApiextensionsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -343,7 +343,7 @@ export class ApiextensionsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -449,7 +449,7 @@ export class ApiextensionsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -547,7 +547,7 @@ export class ApiextensionsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -645,7 +645,7 @@ export class ApiextensionsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -689,7 +689,7 @@ export class ApiextensionsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -733,7 +733,7 @@ export class ApiextensionsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -814,7 +814,7 @@ export class ApiextensionsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -895,7 +895,7 @@ export class ApiextensionsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/ApiregistrationApi.ts b/src/gen/apis/ApiregistrationApi.ts index ae0349a8c7..8c696e51cb 100644 --- a/src/gen/apis/ApiregistrationApi.ts +++ b/src/gen/apis/ApiregistrationApi.ts @@ -38,7 +38,7 @@ export class ApiregistrationApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/ApiregistrationV1Api.ts b/src/gen/apis/ApiregistrationV1Api.ts index 794b6c45f3..bb862e8c9b 100644 --- a/src/gen/apis/ApiregistrationV1Api.ts +++ b/src/gen/apis/ApiregistrationV1Api.ts @@ -86,7 +86,7 @@ export class ApiregistrationV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -176,7 +176,7 @@ export class ApiregistrationV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -314,7 +314,7 @@ export class ApiregistrationV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -343,7 +343,7 @@ export class ApiregistrationV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -449,7 +449,7 @@ export class ApiregistrationV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -547,7 +547,7 @@ export class ApiregistrationV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -645,7 +645,7 @@ export class ApiregistrationV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -689,7 +689,7 @@ export class ApiregistrationV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -733,7 +733,7 @@ export class ApiregistrationV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -814,7 +814,7 @@ export class ApiregistrationV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -895,7 +895,7 @@ export class ApiregistrationV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/ApisApi.ts b/src/gen/apis/ApisApi.ts index c00bb56ac1..335d5642f2 100644 --- a/src/gen/apis/ApisApi.ts +++ b/src/gen/apis/ApisApi.ts @@ -38,7 +38,7 @@ export class ApisApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/AppsApi.ts b/src/gen/apis/AppsApi.ts index c1219924cc..ae962c7ae9 100644 --- a/src/gen/apis/AppsApi.ts +++ b/src/gen/apis/AppsApi.ts @@ -38,7 +38,7 @@ export class AppsApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/AppsV1Api.ts b/src/gen/apis/AppsV1Api.ts index 3aa7a8a5fe..41a7ccb644 100644 --- a/src/gen/apis/AppsV1Api.ts +++ b/src/gen/apis/AppsV1Api.ts @@ -103,7 +103,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -184,7 +184,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -265,7 +265,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -346,7 +346,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -427,7 +427,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -573,7 +573,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -719,7 +719,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -865,7 +865,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1011,7 +1011,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1157,7 +1157,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1255,7 +1255,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1353,7 +1353,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1451,7 +1451,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1549,7 +1549,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1647,7 +1647,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1676,7 +1676,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1782,7 +1782,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1888,7 +1888,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1994,7 +1994,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2108,7 +2108,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2222,7 +2222,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2336,7 +2336,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2450,7 +2450,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2564,7 +2564,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2670,7 +2670,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2776,7 +2776,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2882,7 +2882,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2988,7 +2988,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -3094,7 +3094,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -3200,7 +3200,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -3306,7 +3306,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -3412,7 +3412,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -3518,7 +3518,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -3624,7 +3624,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -3730,7 +3730,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -3836,7 +3836,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -3942,7 +3942,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -4048,7 +4048,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -4100,7 +4100,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -4152,7 +4152,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -4204,7 +4204,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -4256,7 +4256,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -4308,7 +4308,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -4360,7 +4360,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -4412,7 +4412,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -4464,7 +4464,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -4516,7 +4516,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -4568,7 +4568,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -4620,7 +4620,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -4672,7 +4672,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -4761,7 +4761,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -4850,7 +4850,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -4939,7 +4939,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -5028,7 +5028,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -5117,7 +5117,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -5206,7 +5206,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -5295,7 +5295,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -5384,7 +5384,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -5473,7 +5473,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -5562,7 +5562,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -5651,7 +5651,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -5740,7 +5740,7 @@ export class AppsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/AuthenticationApi.ts b/src/gen/apis/AuthenticationApi.ts index e71694915e..5aff0c400e 100644 --- a/src/gen/apis/AuthenticationApi.ts +++ b/src/gen/apis/AuthenticationApi.ts @@ -38,7 +38,7 @@ export class AuthenticationApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/AuthenticationV1Api.ts b/src/gen/apis/AuthenticationV1Api.ts index 65ff30147c..80a3629742 100644 --- a/src/gen/apis/AuthenticationV1Api.ts +++ b/src/gen/apis/AuthenticationV1Api.ts @@ -84,7 +84,7 @@ export class AuthenticationV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -157,7 +157,7 @@ export class AuthenticationV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -186,7 +186,7 @@ export class AuthenticationV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/AuthenticationV1beta1Api.ts b/src/gen/apis/AuthenticationV1beta1Api.ts index 12ccc5e187..25b4f20b42 100644 --- a/src/gen/apis/AuthenticationV1beta1Api.ts +++ b/src/gen/apis/AuthenticationV1beta1Api.ts @@ -83,7 +83,7 @@ export class AuthenticationV1beta1ApiRequestFactory extends BaseAPIRequestFactor await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -112,7 +112,7 @@ export class AuthenticationV1beta1ApiRequestFactory extends BaseAPIRequestFactor await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/AuthorizationApi.ts b/src/gen/apis/AuthorizationApi.ts index 83e0eee280..7245dc1c8f 100644 --- a/src/gen/apis/AuthorizationApi.ts +++ b/src/gen/apis/AuthorizationApi.ts @@ -38,7 +38,7 @@ export class AuthorizationApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/AuthorizationV1Api.ts b/src/gen/apis/AuthorizationV1Api.ts index fd7468833b..b6e3786c39 100644 --- a/src/gen/apis/AuthorizationV1Api.ts +++ b/src/gen/apis/AuthorizationV1Api.ts @@ -94,7 +94,7 @@ export class AuthorizationV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -167,7 +167,7 @@ export class AuthorizationV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -240,7 +240,7 @@ export class AuthorizationV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -313,7 +313,7 @@ export class AuthorizationV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -342,7 +342,7 @@ export class AuthorizationV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/AutoscalingApi.ts b/src/gen/apis/AutoscalingApi.ts index ecc4890fa1..1b51dbd1c9 100644 --- a/src/gen/apis/AutoscalingApi.ts +++ b/src/gen/apis/AutoscalingApi.ts @@ -38,7 +38,7 @@ export class AutoscalingApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/AutoscalingV1Api.ts b/src/gen/apis/AutoscalingV1Api.ts index aefe453ade..07281a3684 100644 --- a/src/gen/apis/AutoscalingV1Api.ts +++ b/src/gen/apis/AutoscalingV1Api.ts @@ -94,7 +94,7 @@ export class AutoscalingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -240,7 +240,7 @@ export class AutoscalingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -338,7 +338,7 @@ export class AutoscalingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -367,7 +367,7 @@ export class AutoscalingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -473,7 +473,7 @@ export class AutoscalingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -587,7 +587,7 @@ export class AutoscalingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -693,7 +693,7 @@ export class AutoscalingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -799,7 +799,7 @@ export class AutoscalingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -851,7 +851,7 @@ export class AutoscalingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -903,7 +903,7 @@ export class AutoscalingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -992,7 +992,7 @@ export class AutoscalingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1081,7 +1081,7 @@ export class AutoscalingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/AutoscalingV2Api.ts b/src/gen/apis/AutoscalingV2Api.ts index e2d701b6db..eaee17ceca 100644 --- a/src/gen/apis/AutoscalingV2Api.ts +++ b/src/gen/apis/AutoscalingV2Api.ts @@ -94,7 +94,7 @@ export class AutoscalingV2ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -240,7 +240,7 @@ export class AutoscalingV2ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -338,7 +338,7 @@ export class AutoscalingV2ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -367,7 +367,7 @@ export class AutoscalingV2ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -473,7 +473,7 @@ export class AutoscalingV2ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -587,7 +587,7 @@ export class AutoscalingV2ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -693,7 +693,7 @@ export class AutoscalingV2ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -799,7 +799,7 @@ export class AutoscalingV2ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -851,7 +851,7 @@ export class AutoscalingV2ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -903,7 +903,7 @@ export class AutoscalingV2ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -992,7 +992,7 @@ export class AutoscalingV2ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1081,7 +1081,7 @@ export class AutoscalingV2ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/BatchApi.ts b/src/gen/apis/BatchApi.ts index 4aa51dd39e..ae730ded2d 100644 --- a/src/gen/apis/BatchApi.ts +++ b/src/gen/apis/BatchApi.ts @@ -38,7 +38,7 @@ export class BatchApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/BatchV1Api.ts b/src/gen/apis/BatchV1Api.ts index 7b585d05a1..9d3f707d28 100644 --- a/src/gen/apis/BatchV1Api.ts +++ b/src/gen/apis/BatchV1Api.ts @@ -96,7 +96,7 @@ export class BatchV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -177,7 +177,7 @@ export class BatchV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -323,7 +323,7 @@ export class BatchV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -469,7 +469,7 @@ export class BatchV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -567,7 +567,7 @@ export class BatchV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -665,7 +665,7 @@ export class BatchV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -694,7 +694,7 @@ export class BatchV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -800,7 +800,7 @@ export class BatchV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -906,7 +906,7 @@ export class BatchV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1020,7 +1020,7 @@ export class BatchV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1134,7 +1134,7 @@ export class BatchV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1240,7 +1240,7 @@ export class BatchV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1346,7 +1346,7 @@ export class BatchV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1452,7 +1452,7 @@ export class BatchV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1558,7 +1558,7 @@ export class BatchV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1610,7 +1610,7 @@ export class BatchV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1662,7 +1662,7 @@ export class BatchV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1714,7 +1714,7 @@ export class BatchV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1766,7 +1766,7 @@ export class BatchV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1855,7 +1855,7 @@ export class BatchV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1944,7 +1944,7 @@ export class BatchV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2033,7 +2033,7 @@ export class BatchV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2122,7 +2122,7 @@ export class BatchV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/CertificatesApi.ts b/src/gen/apis/CertificatesApi.ts index 59f18b5bc6..a243921569 100644 --- a/src/gen/apis/CertificatesApi.ts +++ b/src/gen/apis/CertificatesApi.ts @@ -38,7 +38,7 @@ export class CertificatesApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/CertificatesV1Api.ts b/src/gen/apis/CertificatesV1Api.ts index 3a2556f172..5576ca707f 100644 --- a/src/gen/apis/CertificatesV1Api.ts +++ b/src/gen/apis/CertificatesV1Api.ts @@ -86,7 +86,7 @@ export class CertificatesV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -176,7 +176,7 @@ export class CertificatesV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -314,7 +314,7 @@ export class CertificatesV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -343,7 +343,7 @@ export class CertificatesV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -449,7 +449,7 @@ export class CertificatesV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -547,7 +547,7 @@ export class CertificatesV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -645,7 +645,7 @@ export class CertificatesV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -743,7 +743,7 @@ export class CertificatesV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -787,7 +787,7 @@ export class CertificatesV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -831,7 +831,7 @@ export class CertificatesV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -875,7 +875,7 @@ export class CertificatesV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -956,7 +956,7 @@ export class CertificatesV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1037,7 +1037,7 @@ export class CertificatesV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1118,7 +1118,7 @@ export class CertificatesV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/CertificatesV1alpha1Api.ts b/src/gen/apis/CertificatesV1alpha1Api.ts index 207b5a2ece..ba8a68aa6c 100644 --- a/src/gen/apis/CertificatesV1alpha1Api.ts +++ b/src/gen/apis/CertificatesV1alpha1Api.ts @@ -15,6 +15,8 @@ import { V1DeleteOptions } from '../models/V1DeleteOptions.js'; import { V1Status } from '../models/V1Status.js'; import { V1alpha1ClusterTrustBundle } from '../models/V1alpha1ClusterTrustBundle.js'; import { V1alpha1ClusterTrustBundleList } from '../models/V1alpha1ClusterTrustBundleList.js'; +import { V1alpha1PodCertificateRequest } from '../models/V1alpha1PodCertificateRequest.js'; +import { V1alpha1PodCertificateRequestList } from '../models/V1alpha1PodCertificateRequestList.js'; /** * no description @@ -86,7 +88,88 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * create a PodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async createNamespacedPodCertificateRequest(namespace: string, body: V1alpha1PodCertificateRequest, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "createNamespacedPodCertificateRequest", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "createNamespacedPodCertificateRequest", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests' + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1alpha1PodCertificateRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -176,7 +259,7 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -314,36 +397,7 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * get available resources - */ - public async getAPIResources(_options?: Configuration): Promise { - let _config = _options || this.configuration; - - // Path Params - const localVarPath = '/apis/certificates.k8s.io/v1alpha1/'; - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -352,22 +406,37 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory } /** - * list or watch objects of kind ClusterTrustBundle + * delete collection of PodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + * @param body */ - public async listClusterTrustBundle(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + public async deleteCollectionNamespacedPodCertificateRequest(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { let _config = _options || this.configuration; + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "deleteCollectionNamespacedPodCertificateRequest", "namespace"); + } + + + + + + @@ -380,10 +449,11 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory // Path Params - const localVarPath = '/apis/certificates.k8s.io/v1alpha1/clustertrustbundles'; + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests' + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Query Params @@ -392,13 +462,13 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory } // Query Params - if (allowWatchBookmarks !== undefined) { - requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); } // Query Params - if (_continue !== undefined) { - requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); } // Query Params @@ -406,6 +476,16 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); } + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + // Query Params if (labelSelector !== undefined) { requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); @@ -416,6 +496,16 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); } + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + // Query Params if (resourceVersion !== undefined) { requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); @@ -436,11 +526,15 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); } - // Query Params - if (watch !== undefined) { - requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); - } + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); let authMethod: SecurityAuthentication | undefined; // Apply auth methods @@ -449,7 +543,7 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -458,27 +552,29 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory } /** - * partially update the specified ClusterTrustBundle - * @param name name of the ClusterTrustBundle - * @param body + * delete a PodCertificateRequest + * @param name name of the PodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param body */ - public async patchClusterTrustBundle(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + public async deleteNamespacedPodCertificateRequest(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("CertificatesV1alpha1Api", "patchClusterTrustBundle", "name"); + throw new RequiredError("CertificatesV1alpha1Api", "deleteNamespacedPodCertificateRequest", "name"); } - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("CertificatesV1alpha1Api", "patchClusterTrustBundle", "body"); + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "deleteNamespacedPodCertificateRequest", "namespace"); } @@ -487,12 +583,15 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory + + // Path Params - const localVarPath = '/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Query Params @@ -506,36 +605,31 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory } // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); } // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); } // Query Params - if (force !== undefined) { - requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); } // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json-patch+json", - - "application/merge-patch+json", - - "application/strategic-merge-patch+json", - - "application/apply-patch+yaml", - - "application/apply-patch+cbor" - ]); + const contentType = ObjectSerializer.getPreferredMediaType([]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "any", ""), + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), contentType ); requestContext.setBody(serializedBody); @@ -547,7 +641,7 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -556,33 +650,18 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory } /** - * read the specified ClusterTrustBundle - * @param name name of the ClusterTrustBundle - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * get available resources */ - public async readClusterTrustBundle(name: string, pretty?: string, _options?: Configuration): Promise { + public async getAPIResources(_options?: Configuration): Promise { let _config = _options || this.configuration; - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("CertificatesV1alpha1Api", "readClusterTrustBundle", "name"); - } - - - // Path Params - const localVarPath = '/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/'; // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - let authMethod: SecurityAuthentication | undefined; // Apply auth methods @@ -591,7 +670,7 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -600,26 +679,898 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory } /** - * replace the specified ClusterTrustBundle - * @param name name of the ClusterTrustBundle - * @param body + * list or watch objects of kind ClusterTrustBundle * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public async replaceClusterTrustBundle(name: string, body: V1alpha1ClusterTrustBundle, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + public async listClusterTrustBundle(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { let _config = _options || this.configuration; - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("CertificatesV1alpha1Api", "replaceClusterTrustBundle", "name"); - } - // verify required parameter 'body' is not null or undefined + + + + + + + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/clustertrustbundles'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * list or watch objects of kind PodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public async listNamespacedPodCertificateRequest(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "listNamespacedPodCertificateRequest", "namespace"); + } + + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests' + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * list or watch objects of kind PodCertificateRequest + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public async listPodCertificateRequestForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/podcertificaterequests'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * partially update the specified ClusterTrustBundle + * @param name name of the ClusterTrustBundle + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + */ + public async patchClusterTrustBundle(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "patchClusterTrustBundle", "name"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "patchClusterTrustBundle", "body"); + } + + + + + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + // Query Params + if (force !== undefined) { + requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json-patch+json", + + "application/merge-patch+json", + + "application/strategic-merge-patch+json", + + "application/apply-patch+yaml", + + "application/apply-patch+cbor" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "any", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * partially update the specified PodCertificateRequest + * @param name name of the PodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + */ + public async patchNamespacedPodCertificateRequest(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "patchNamespacedPodCertificateRequest", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "patchNamespacedPodCertificateRequest", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "patchNamespacedPodCertificateRequest", "body"); + } + + + + + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + // Query Params + if (force !== undefined) { + requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json-patch+json", + + "application/merge-patch+json", + + "application/strategic-merge-patch+json", + + "application/apply-patch+yaml", + + "application/apply-patch+cbor" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "any", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * partially update status of the specified PodCertificateRequest + * @param name name of the PodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + */ + public async patchNamespacedPodCertificateRequestStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "patchNamespacedPodCertificateRequestStatus", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "patchNamespacedPodCertificateRequestStatus", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "patchNamespacedPodCertificateRequestStatus", "body"); + } + + + + + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}/status' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + // Query Params + if (force !== undefined) { + requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json-patch+json", + + "application/merge-patch+json", + + "application/strategic-merge-patch+json", + + "application/apply-patch+yaml", + + "application/apply-patch+cbor" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "any", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * read the specified ClusterTrustBundle + * @param name name of the ClusterTrustBundle + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + */ + public async readClusterTrustBundle(name: string, pretty?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "readClusterTrustBundle", "name"); + } + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * read the specified PodCertificateRequest + * @param name name of the PodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + */ + public async readNamespacedPodCertificateRequest(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "readNamespacedPodCertificateRequest", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "readNamespacedPodCertificateRequest", "namespace"); + } + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * read status of the specified PodCertificateRequest + * @param name name of the PodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + */ + public async readNamespacedPodCertificateRequestStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "readNamespacedPodCertificateRequestStatus", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "readNamespacedPodCertificateRequestStatus", "namespace"); + } + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}/status' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * replace the specified ClusterTrustBundle + * @param name name of the ClusterTrustBundle + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async replaceClusterTrustBundle(name: string, body: V1alpha1ClusterTrustBundle, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "replaceClusterTrustBundle", "name"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "replaceClusterTrustBundle", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1alpha1ClusterTrustBundle", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * replace the specified PodCertificateRequest + * @param name name of the PodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async replaceNamespacedPodCertificateRequest(name: string, namespace: string, body: V1alpha1PodCertificateRequest, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "replaceNamespacedPodCertificateRequest", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "replaceNamespacedPodCertificateRequest", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("CertificatesV1alpha1Api", "replaceClusterTrustBundle", "body"); + throw new RequiredError("CertificatesV1alpha1Api", "replaceNamespacedPodCertificateRequest", "body"); } @@ -628,8 +1579,9 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory // Path Params - const localVarPath = '/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); @@ -660,7 +1612,96 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory const contentType = ObjectSerializer.getPreferredMediaType([]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1alpha1ClusterTrustBundle", ""), + ObjectSerializer.serialize(body, "V1alpha1PodCertificateRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * replace status of the specified PodCertificateRequest + * @param name name of the PodCertificateRequest + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async replaceNamespacedPodCertificateRequestStatus(name: string, namespace: string, body: V1alpha1PodCertificateRequest, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "replaceNamespacedPodCertificateRequestStatus", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "replaceNamespacedPodCertificateRequestStatus", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("CertificatesV1alpha1Api", "replaceNamespacedPodCertificateRequestStatus", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}/status' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1alpha1PodCertificateRequest", ""), contentType ); requestContext.setBody(serializedBody); @@ -672,7 +1713,7 @@ export class CertificatesV1alpha1ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -688,30 +1729,147 @@ export class CertificatesV1alpha1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to createClusterTrustBundle + * @params response Response returned by the server for a request to createClusterTrustBundle + * @throws ApiException if the response code was not in [200, 299] + */ + public async createClusterTrustBundleWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1alpha1ClusterTrustBundle = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1ClusterTrustBundle", "" + ) as V1alpha1ClusterTrustBundle; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1alpha1ClusterTrustBundle = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1ClusterTrustBundle", "" + ) as V1alpha1ClusterTrustBundle; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1alpha1ClusterTrustBundle = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1ClusterTrustBundle", "" + ) as V1alpha1ClusterTrustBundle; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1alpha1ClusterTrustBundle = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1ClusterTrustBundle", "" + ) as V1alpha1ClusterTrustBundle; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createNamespacedPodCertificateRequest + * @throws ApiException if the response code was not in [200, 299] + */ + public async createNamespacedPodCertificateRequestWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteClusterTrustBundle + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteClusterTrustBundleWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteCollectionClusterTrustBundle * @throws ApiException if the response code was not in [200, 299] */ - public async createClusterTrustBundleWithHttpInfo(response: ResponseContext): Promise> { + public async deleteCollectionClusterTrustBundleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha1ClusterTrustBundle = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha1ClusterTrustBundle", "" - ) as V1alpha1ClusterTrustBundle; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha1ClusterTrustBundle = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha1ClusterTrustBundle", "" - ) as V1alpha1ClusterTrustBundle; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("202", response.httpStatusCode)) { - const body: V1alpha1ClusterTrustBundle = ObjectSerializer.deserialize( + const body: V1Status = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha1ClusterTrustBundle", "" - ) as V1alpha1ClusterTrustBundle; + "V1Status", "" + ) as V1Status; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -720,10 +1878,10 @@ export class CertificatesV1alpha1ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha1ClusterTrustBundle = ObjectSerializer.deserialize( + const body: V1Status = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha1ClusterTrustBundle", "" - ) as V1alpha1ClusterTrustBundle; + "V1Status", "" + ) as V1Status; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -734,10 +1892,10 @@ export class CertificatesV1alpha1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to deleteClusterTrustBundle + * @params response Response returned by the server for a request to deleteCollectionNamespacedPodCertificateRequest * @throws ApiException if the response code was not in [200, 299] */ - public async deleteClusterTrustBundleWithHttpInfo(response: ResponseContext): Promise> { + public async deleteCollectionNamespacedPodCertificateRequestWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Status = ObjectSerializer.deserialize( @@ -746,13 +1904,6 @@ export class CertificatesV1alpha1ApiResponseProcessor { ) as V1Status; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } - if (isCodeInRange("202", response.httpStatusCode)) { - const body: V1Status = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1Status", "" - ) as V1Status; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); } @@ -773,10 +1924,10 @@ export class CertificatesV1alpha1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to deleteCollectionClusterTrustBundle + * @params response Response returned by the server for a request to deleteNamespacedPodCertificateRequest * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionClusterTrustBundleWithHttpInfo(response: ResponseContext): Promise> { + public async deleteNamespacedPodCertificateRequestWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Status = ObjectSerializer.deserialize( @@ -785,6 +1936,13 @@ export class CertificatesV1alpha1ApiResponseProcessor { ) as V1Status; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); } @@ -865,6 +2023,70 @@ export class CertificatesV1alpha1ApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listNamespacedPodCertificateRequest + * @throws ApiException if the response code was not in [200, 299] + */ + public async listNamespacedPodCertificateRequestWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequestList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequestList", "" + ) as V1alpha1PodCertificateRequestList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1alpha1PodCertificateRequestList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequestList", "" + ) as V1alpha1PodCertificateRequestList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listPodCertificateRequestForAllNamespaces + * @throws ApiException if the response code was not in [200, 299] + */ + public async listPodCertificateRequestForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequestList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequestList", "" + ) as V1alpha1PodCertificateRequestList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1alpha1PodCertificateRequestList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequestList", "" + ) as V1alpha1PodCertificateRequestList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -904,6 +2126,84 @@ export class CertificatesV1alpha1ApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to patchNamespacedPodCertificateRequest + * @throws ApiException if the response code was not in [200, 299] + */ + public async patchNamespacedPodCertificateRequestWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to patchNamespacedPodCertificateRequestStatus + * @throws ApiException if the response code was not in [200, 299] + */ + public async patchNamespacedPodCertificateRequestStatusWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -936,6 +2236,70 @@ export class CertificatesV1alpha1ApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to readNamespacedPodCertificateRequest + * @throws ApiException if the response code was not in [200, 299] + */ + public async readNamespacedPodCertificateRequestWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to readNamespacedPodCertificateRequestStatus + * @throws ApiException if the response code was not in [200, 299] + */ + public async readNamespacedPodCertificateRequestStatusWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -975,4 +2339,82 @@ export class CertificatesV1alpha1ApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to replaceNamespacedPodCertificateRequest + * @throws ApiException if the response code was not in [200, 299] + */ + public async replaceNamespacedPodCertificateRequestWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to replaceNamespacedPodCertificateRequestStatus + * @throws ApiException if the response code was not in [200, 299] + */ + public async replaceNamespacedPodCertificateRequestStatusWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1alpha1PodCertificateRequest = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha1PodCertificateRequest", "" + ) as V1alpha1PodCertificateRequest; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + } diff --git a/src/gen/apis/CertificatesV1beta1Api.ts b/src/gen/apis/CertificatesV1beta1Api.ts new file mode 100644 index 0000000000..a2c363e1fc --- /dev/null +++ b/src/gen/apis/CertificatesV1beta1Api.ts @@ -0,0 +1,978 @@ +// TODO: better import syntax? +import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi.js'; +import {Configuration} from '../configuration.js'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http.js'; +import FormData from "form-data"; +import { URLSearchParams } from 'url'; +import {ObjectSerializer} from '../models/ObjectSerializer.js'; +import {ApiException} from './exception.js'; +import {canConsumeForm, isCodeInRange} from '../util.js'; +import {SecurityAuthentication} from '../auth/auth.js'; + + +import { V1APIResourceList } from '../models/V1APIResourceList.js'; +import { V1DeleteOptions } from '../models/V1DeleteOptions.js'; +import { V1Status } from '../models/V1Status.js'; +import { V1beta1ClusterTrustBundle } from '../models/V1beta1ClusterTrustBundle.js'; +import { V1beta1ClusterTrustBundleList } from '../models/V1beta1ClusterTrustBundleList.js'; + +/** + * no description + */ +export class CertificatesV1beta1ApiRequestFactory extends BaseAPIRequestFactory { + + /** + * create a ClusterTrustBundle + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async createClusterTrustBundle(body: V1beta1ClusterTrustBundle, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("CertificatesV1beta1Api", "createClusterTrustBundle", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1beta1/clustertrustbundles'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1beta1ClusterTrustBundle", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * delete a ClusterTrustBundle + * @param name name of the ClusterTrustBundle + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param body + */ + public async deleteClusterTrustBundle(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("CertificatesV1beta1Api", "deleteClusterTrustBundle", "name"); + } + + + + + + + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * delete collection of ClusterTrustBundle + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public async deleteCollectionClusterTrustBundle(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + + + + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1beta1/clustertrustbundles'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * get available resources + */ + public async getAPIResources(_options?: Configuration): Promise { + let _config = _options || this.configuration; + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1beta1/'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * list or watch objects of kind ClusterTrustBundle + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public async listClusterTrustBundle(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1beta1/clustertrustbundles'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * partially update the specified ClusterTrustBundle + * @param name name of the ClusterTrustBundle + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + */ + public async patchClusterTrustBundle(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("CertificatesV1beta1Api", "patchClusterTrustBundle", "name"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("CertificatesV1beta1Api", "patchClusterTrustBundle", "body"); + } + + + + + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + // Query Params + if (force !== undefined) { + requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json-patch+json", + + "application/merge-patch+json", + + "application/strategic-merge-patch+json", + + "application/apply-patch+yaml", + + "application/apply-patch+cbor" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "any", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * read the specified ClusterTrustBundle + * @param name name of the ClusterTrustBundle + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + */ + public async readClusterTrustBundle(name: string, pretty?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("CertificatesV1beta1Api", "readClusterTrustBundle", "name"); + } + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * replace the specified ClusterTrustBundle + * @param name name of the ClusterTrustBundle + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async replaceClusterTrustBundle(name: string, body: V1beta1ClusterTrustBundle, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("CertificatesV1beta1Api", "replaceClusterTrustBundle", "name"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("CertificatesV1beta1Api", "replaceClusterTrustBundle", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1beta1ClusterTrustBundle", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + +} + +export class CertificatesV1beta1ApiResponseProcessor { + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createClusterTrustBundle + * @throws ApiException if the response code was not in [200, 299] + */ + public async createClusterTrustBundleWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1beta1ClusterTrustBundle = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta1ClusterTrustBundle", "" + ) as V1beta1ClusterTrustBundle; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1beta1ClusterTrustBundle = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta1ClusterTrustBundle", "" + ) as V1beta1ClusterTrustBundle; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1beta1ClusterTrustBundle = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta1ClusterTrustBundle", "" + ) as V1beta1ClusterTrustBundle; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1beta1ClusterTrustBundle = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta1ClusterTrustBundle", "" + ) as V1beta1ClusterTrustBundle; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteClusterTrustBundle + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteClusterTrustBundleWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteCollectionClusterTrustBundle + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteCollectionClusterTrustBundleWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getAPIResources + * @throws ApiException if the response code was not in [200, 299] + */ + public async getAPIResourcesWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1APIResourceList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1APIResourceList", "" + ) as V1APIResourceList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1APIResourceList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1APIResourceList", "" + ) as V1APIResourceList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listClusterTrustBundle + * @throws ApiException if the response code was not in [200, 299] + */ + public async listClusterTrustBundleWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1beta1ClusterTrustBundleList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta1ClusterTrustBundleList", "" + ) as V1beta1ClusterTrustBundleList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1beta1ClusterTrustBundleList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta1ClusterTrustBundleList", "" + ) as V1beta1ClusterTrustBundleList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to patchClusterTrustBundle + * @throws ApiException if the response code was not in [200, 299] + */ + public async patchClusterTrustBundleWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1beta1ClusterTrustBundle = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta1ClusterTrustBundle", "" + ) as V1beta1ClusterTrustBundle; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1beta1ClusterTrustBundle = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta1ClusterTrustBundle", "" + ) as V1beta1ClusterTrustBundle; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1beta1ClusterTrustBundle = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta1ClusterTrustBundle", "" + ) as V1beta1ClusterTrustBundle; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to readClusterTrustBundle + * @throws ApiException if the response code was not in [200, 299] + */ + public async readClusterTrustBundleWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1beta1ClusterTrustBundle = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta1ClusterTrustBundle", "" + ) as V1beta1ClusterTrustBundle; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1beta1ClusterTrustBundle = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta1ClusterTrustBundle", "" + ) as V1beta1ClusterTrustBundle; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to replaceClusterTrustBundle + * @throws ApiException if the response code was not in [200, 299] + */ + public async replaceClusterTrustBundleWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1beta1ClusterTrustBundle = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta1ClusterTrustBundle", "" + ) as V1beta1ClusterTrustBundle; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1beta1ClusterTrustBundle = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta1ClusterTrustBundle", "" + ) as V1beta1ClusterTrustBundle; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1beta1ClusterTrustBundle = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta1ClusterTrustBundle", "" + ) as V1beta1ClusterTrustBundle; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + +} diff --git a/src/gen/apis/CoordinationApi.ts b/src/gen/apis/CoordinationApi.ts index 43dd1b2774..84baa958ee 100644 --- a/src/gen/apis/CoordinationApi.ts +++ b/src/gen/apis/CoordinationApi.ts @@ -38,7 +38,7 @@ export class CoordinationApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/CoordinationV1Api.ts b/src/gen/apis/CoordinationV1Api.ts index f624ec87fd..83532046b3 100644 --- a/src/gen/apis/CoordinationV1Api.ts +++ b/src/gen/apis/CoordinationV1Api.ts @@ -94,7 +94,7 @@ export class CoordinationV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -240,7 +240,7 @@ export class CoordinationV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -338,7 +338,7 @@ export class CoordinationV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -367,7 +367,7 @@ export class CoordinationV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -473,7 +473,7 @@ export class CoordinationV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -587,7 +587,7 @@ export class CoordinationV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -693,7 +693,7 @@ export class CoordinationV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -745,7 +745,7 @@ export class CoordinationV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -834,7 +834,7 @@ export class CoordinationV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/CoordinationV1alpha2Api.ts b/src/gen/apis/CoordinationV1alpha2Api.ts index cf7f80d5ff..c00bdf42ed 100644 --- a/src/gen/apis/CoordinationV1alpha2Api.ts +++ b/src/gen/apis/CoordinationV1alpha2Api.ts @@ -94,7 +94,7 @@ export class CoordinationV1alpha2ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -240,7 +240,7 @@ export class CoordinationV1alpha2ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -338,7 +338,7 @@ export class CoordinationV1alpha2ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -367,7 +367,7 @@ export class CoordinationV1alpha2ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -473,7 +473,7 @@ export class CoordinationV1alpha2ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -587,7 +587,7 @@ export class CoordinationV1alpha2ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -693,7 +693,7 @@ export class CoordinationV1alpha2ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -745,7 +745,7 @@ export class CoordinationV1alpha2ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -834,7 +834,7 @@ export class CoordinationV1alpha2ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/CoordinationV1beta1Api.ts b/src/gen/apis/CoordinationV1beta1Api.ts new file mode 100644 index 0000000000..bfd74d14dd --- /dev/null +++ b/src/gen/apis/CoordinationV1beta1Api.ts @@ -0,0 +1,1172 @@ +// TODO: better import syntax? +import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi.js'; +import {Configuration} from '../configuration.js'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http.js'; +import FormData from "form-data"; +import { URLSearchParams } from 'url'; +import {ObjectSerializer} from '../models/ObjectSerializer.js'; +import {ApiException} from './exception.js'; +import {canConsumeForm, isCodeInRange} from '../util.js'; +import {SecurityAuthentication} from '../auth/auth.js'; + + +import { V1APIResourceList } from '../models/V1APIResourceList.js'; +import { V1DeleteOptions } from '../models/V1DeleteOptions.js'; +import { V1Status } from '../models/V1Status.js'; +import { V1beta1LeaseCandidate } from '../models/V1beta1LeaseCandidate.js'; +import { V1beta1LeaseCandidateList } from '../models/V1beta1LeaseCandidateList.js'; + +/** + * no description + */ +export class CoordinationV1beta1ApiRequestFactory extends BaseAPIRequestFactory { + + /** + * create a LeaseCandidate + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async createNamespacedLeaseCandidate(namespace: string, body: V1beta1LeaseCandidate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("CoordinationV1beta1Api", "createNamespacedLeaseCandidate", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("CoordinationV1beta1Api", "createNamespacedLeaseCandidate", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates' + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1beta1LeaseCandidate", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * delete collection of LeaseCandidate + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public async deleteCollectionNamespacedLeaseCandidate(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("CoordinationV1beta1Api", "deleteCollectionNamespacedLeaseCandidate", "namespace"); + } + + + + + + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates' + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * delete a LeaseCandidate + * @param name name of the LeaseCandidate + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param body + */ + public async deleteNamespacedLeaseCandidate(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("CoordinationV1beta1Api", "deleteNamespacedLeaseCandidate", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("CoordinationV1beta1Api", "deleteNamespacedLeaseCandidate", "namespace"); + } + + + + + + + + + + // Path Params + const localVarPath = '/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * get available resources + */ + public async getAPIResources(_options?: Configuration): Promise { + let _config = _options || this.configuration; + + // Path Params + const localVarPath = '/apis/coordination.k8s.io/v1beta1/'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * list or watch objects of kind LeaseCandidate + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public async listLeaseCandidateForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/coordination.k8s.io/v1beta1/leasecandidates'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * list or watch objects of kind LeaseCandidate + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public async listNamespacedLeaseCandidate(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("CoordinationV1beta1Api", "listNamespacedLeaseCandidate", "namespace"); + } + + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates' + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * partially update the specified LeaseCandidate + * @param name name of the LeaseCandidate + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + */ + public async patchNamespacedLeaseCandidate(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("CoordinationV1beta1Api", "patchNamespacedLeaseCandidate", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("CoordinationV1beta1Api", "patchNamespacedLeaseCandidate", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("CoordinationV1beta1Api", "patchNamespacedLeaseCandidate", "body"); + } + + + + + + + + // Path Params + const localVarPath = '/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + // Query Params + if (force !== undefined) { + requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json-patch+json", + + "application/merge-patch+json", + + "application/strategic-merge-patch+json", + + "application/apply-patch+yaml", + + "application/apply-patch+cbor" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "any", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * read the specified LeaseCandidate + * @param name name of the LeaseCandidate + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + */ + public async readNamespacedLeaseCandidate(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("CoordinationV1beta1Api", "readNamespacedLeaseCandidate", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("CoordinationV1beta1Api", "readNamespacedLeaseCandidate", "namespace"); + } + + + + // Path Params + const localVarPath = '/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * replace the specified LeaseCandidate + * @param name name of the LeaseCandidate + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async replaceNamespacedLeaseCandidate(name: string, namespace: string, body: V1beta1LeaseCandidate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("CoordinationV1beta1Api", "replaceNamespacedLeaseCandidate", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("CoordinationV1beta1Api", "replaceNamespacedLeaseCandidate", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("CoordinationV1beta1Api", "replaceNamespacedLeaseCandidate", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1beta1LeaseCandidate", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + +} + +export class CoordinationV1beta1ApiResponseProcessor { + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createNamespacedLeaseCandidate + * @throws ApiException if the response code was not in [200, 299] + */ + public async createNamespacedLeaseCandidateWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1beta1LeaseCandidate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta1LeaseCandidate", "" + ) as V1beta1LeaseCandidate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1beta1LeaseCandidate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta1LeaseCandidate", "" + ) as V1beta1LeaseCandidate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1beta1LeaseCandidate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta1LeaseCandidate", "" + ) as V1beta1LeaseCandidate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1beta1LeaseCandidate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta1LeaseCandidate", "" + ) as V1beta1LeaseCandidate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteCollectionNamespacedLeaseCandidate + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteCollectionNamespacedLeaseCandidateWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteNamespacedLeaseCandidate + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteNamespacedLeaseCandidateWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getAPIResources + * @throws ApiException if the response code was not in [200, 299] + */ + public async getAPIResourcesWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1APIResourceList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1APIResourceList", "" + ) as V1APIResourceList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1APIResourceList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1APIResourceList", "" + ) as V1APIResourceList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listLeaseCandidateForAllNamespaces + * @throws ApiException if the response code was not in [200, 299] + */ + public async listLeaseCandidateForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1beta1LeaseCandidateList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta1LeaseCandidateList", "" + ) as V1beta1LeaseCandidateList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1beta1LeaseCandidateList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta1LeaseCandidateList", "" + ) as V1beta1LeaseCandidateList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listNamespacedLeaseCandidate + * @throws ApiException if the response code was not in [200, 299] + */ + public async listNamespacedLeaseCandidateWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1beta1LeaseCandidateList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta1LeaseCandidateList", "" + ) as V1beta1LeaseCandidateList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1beta1LeaseCandidateList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta1LeaseCandidateList", "" + ) as V1beta1LeaseCandidateList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to patchNamespacedLeaseCandidate + * @throws ApiException if the response code was not in [200, 299] + */ + public async patchNamespacedLeaseCandidateWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1beta1LeaseCandidate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta1LeaseCandidate", "" + ) as V1beta1LeaseCandidate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1beta1LeaseCandidate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta1LeaseCandidate", "" + ) as V1beta1LeaseCandidate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1beta1LeaseCandidate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta1LeaseCandidate", "" + ) as V1beta1LeaseCandidate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to readNamespacedLeaseCandidate + * @throws ApiException if the response code was not in [200, 299] + */ + public async readNamespacedLeaseCandidateWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1beta1LeaseCandidate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta1LeaseCandidate", "" + ) as V1beta1LeaseCandidate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1beta1LeaseCandidate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta1LeaseCandidate", "" + ) as V1beta1LeaseCandidate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to replaceNamespacedLeaseCandidate + * @throws ApiException if the response code was not in [200, 299] + */ + public async replaceNamespacedLeaseCandidateWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1beta1LeaseCandidate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta1LeaseCandidate", "" + ) as V1beta1LeaseCandidate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1beta1LeaseCandidate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta1LeaseCandidate", "" + ) as V1beta1LeaseCandidate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1beta1LeaseCandidate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta1LeaseCandidate", "" + ) as V1beta1LeaseCandidate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + +} diff --git a/src/gen/apis/CoreApi.ts b/src/gen/apis/CoreApi.ts index c66c1bc398..1ab741be94 100644 --- a/src/gen/apis/CoreApi.ts +++ b/src/gen/apis/CoreApi.ts @@ -38,7 +38,7 @@ export class CoreApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/CoreV1Api.ts b/src/gen/apis/CoreV1Api.ts index 5dcefdb73e..c05a7b5198 100644 --- a/src/gen/apis/CoreV1Api.ts +++ b/src/gen/apis/CoreV1Api.ts @@ -99,7 +99,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -159,7 +159,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -211,7 +211,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -271,7 +271,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -315,7 +315,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -367,7 +367,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -447,7 +447,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -534,7 +534,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -586,7 +586,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -638,7 +638,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -698,7 +698,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -750,7 +750,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -810,7 +810,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -854,7 +854,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -906,7 +906,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -958,7 +958,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1018,7 +1018,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1070,7 +1070,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1130,7 +1130,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1174,7 +1174,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1226,7 +1226,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1278,7 +1278,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1338,7 +1338,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1390,7 +1390,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1450,7 +1450,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1494,7 +1494,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1546,7 +1546,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1598,7 +1598,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1658,7 +1658,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1710,7 +1710,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1770,7 +1770,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1814,7 +1814,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1866,7 +1866,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1946,7 +1946,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2033,7 +2033,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2085,7 +2085,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2137,7 +2137,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2197,7 +2197,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2249,7 +2249,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2309,7 +2309,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2353,7 +2353,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2405,7 +2405,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2457,7 +2457,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2517,7 +2517,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2569,7 +2569,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2629,7 +2629,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2673,7 +2673,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2725,7 +2725,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2798,7 +2798,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2879,7 +2879,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2960,7 +2960,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -3041,7 +3041,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -3122,7 +3122,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -3203,7 +3203,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -3284,7 +3284,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -3365,7 +3365,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -3454,7 +3454,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -3543,7 +3543,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -3624,7 +3624,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -3705,7 +3705,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -3786,7 +3786,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -3867,7 +3867,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -3948,7 +3948,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -4029,7 +4029,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -4118,7 +4118,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -4191,7 +4191,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -4264,7 +4264,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -4410,7 +4410,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -4556,7 +4556,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -4702,7 +4702,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -4848,7 +4848,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -4994,7 +4994,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -5140,7 +5140,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -5286,7 +5286,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -5432,7 +5432,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -5578,7 +5578,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -5724,7 +5724,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -5870,7 +5870,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -6016,7 +6016,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -6154,7 +6154,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -6292,7 +6292,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -6382,7 +6382,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -6480,7 +6480,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -6578,7 +6578,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -6676,7 +6676,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -6774,7 +6774,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -6872,7 +6872,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -6970,7 +6970,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -7068,7 +7068,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -7166,7 +7166,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -7264,7 +7264,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -7362,7 +7362,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -7460,7 +7460,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -7558,7 +7558,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -7648,7 +7648,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -7738,7 +7738,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -7767,7 +7767,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -7873,7 +7873,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -7979,7 +7979,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -8085,7 +8085,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -8191,7 +8191,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -8297,7 +8297,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -8403,7 +8403,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -8517,7 +8517,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -8631,7 +8631,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -8745,7 +8745,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -8859,7 +8859,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -8973,7 +8973,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -9087,7 +9087,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -9201,7 +9201,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -9315,7 +9315,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -9429,7 +9429,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -9543,7 +9543,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -9657,7 +9657,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -9771,7 +9771,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -9877,7 +9877,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -9983,7 +9983,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -10089,7 +10089,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -10195,7 +10195,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -10301,7 +10301,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -10407,7 +10407,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -10513,7 +10513,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -10619,7 +10619,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -10725,7 +10725,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -10831,7 +10831,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -10929,7 +10929,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -11027,7 +11027,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -11133,7 +11133,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -11239,7 +11239,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -11345,7 +11345,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -11451,7 +11451,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -11557,7 +11557,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -11663,7 +11663,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -11769,7 +11769,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -11875,7 +11875,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -11981,7 +11981,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -12087,7 +12087,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -12193,7 +12193,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -12299,7 +12299,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -12405,7 +12405,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -12511,7 +12511,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -12617,7 +12617,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -12723,7 +12723,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -12829,7 +12829,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -12935,7 +12935,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -13041,7 +13041,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -13147,7 +13147,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -13245,7 +13245,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -13343,7 +13343,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -13441,7 +13441,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -13539,7 +13539,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -13583,7 +13583,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -13627,7 +13627,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -13671,7 +13671,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -13723,7 +13723,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -13775,7 +13775,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -13827,7 +13827,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -13879,7 +13879,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -13931,7 +13931,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -13983,7 +13983,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -14035,7 +14035,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -14087,7 +14087,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -14202,7 +14202,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -14254,7 +14254,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -14306,7 +14306,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -14358,7 +14358,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -14410,7 +14410,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -14462,7 +14462,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -14514,7 +14514,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -14566,7 +14566,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -14618,7 +14618,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -14670,7 +14670,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -14722,7 +14722,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -14774,7 +14774,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -14826,7 +14826,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -14870,7 +14870,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -14914,7 +14914,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -14958,7 +14958,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -15002,7 +15002,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -15083,7 +15083,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -15164,7 +15164,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -15245,7 +15245,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -15334,7 +15334,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -15423,7 +15423,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -15512,7 +15512,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -15601,7 +15601,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -15690,7 +15690,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -15779,7 +15779,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -15868,7 +15868,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -15957,7 +15957,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -16046,7 +16046,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -16135,7 +16135,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -16224,7 +16224,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -16313,7 +16313,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -16402,7 +16402,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -16491,7 +16491,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -16580,7 +16580,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -16669,7 +16669,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -16758,7 +16758,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -16847,7 +16847,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -16936,7 +16936,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -17025,7 +17025,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -17106,7 +17106,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -17187,7 +17187,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -17268,7 +17268,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -17349,7 +17349,7 @@ export class CoreV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/CustomObjectsApi.ts b/src/gen/apis/CustomObjectsApi.ts index 2a5d726b20..892e014f9b 100644 --- a/src/gen/apis/CustomObjectsApi.ts +++ b/src/gen/apis/CustomObjectsApi.ts @@ -107,7 +107,7 @@ export class CustomObjectsApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -212,7 +212,7 @@ export class CustomObjectsApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -312,7 +312,7 @@ export class CustomObjectsApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -418,7 +418,7 @@ export class CustomObjectsApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -539,7 +539,7 @@ export class CustomObjectsApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -647,7 +647,7 @@ export class CustomObjectsApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -692,7 +692,7 @@ export class CustomObjectsApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -753,7 +753,7 @@ export class CustomObjectsApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -814,7 +814,7 @@ export class CustomObjectsApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -875,7 +875,7 @@ export class CustomObjectsApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -944,7 +944,7 @@ export class CustomObjectsApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1013,7 +1013,7 @@ export class CustomObjectsApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1082,7 +1082,7 @@ export class CustomObjectsApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1205,7 +1205,7 @@ export class CustomObjectsApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1328,7 +1328,7 @@ export class CustomObjectsApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1459,7 +1459,7 @@ export class CustomObjectsApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1568,7 +1568,7 @@ export class CustomObjectsApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1677,7 +1677,7 @@ export class CustomObjectsApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1786,7 +1786,7 @@ export class CustomObjectsApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1903,7 +1903,7 @@ export class CustomObjectsApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2022,7 +2022,7 @@ export class CustomObjectsApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2141,7 +2141,7 @@ export class CustomObjectsApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2239,7 +2239,7 @@ export class CustomObjectsApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2337,7 +2337,7 @@ export class CustomObjectsApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2435,7 +2435,7 @@ export class CustomObjectsApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2541,7 +2541,7 @@ export class CustomObjectsApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2647,7 +2647,7 @@ export class CustomObjectsApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2753,7 +2753,7 @@ export class CustomObjectsApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/DiscoveryApi.ts b/src/gen/apis/DiscoveryApi.ts index d68810b2bd..84add9e0ae 100644 --- a/src/gen/apis/DiscoveryApi.ts +++ b/src/gen/apis/DiscoveryApi.ts @@ -38,7 +38,7 @@ export class DiscoveryApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/DiscoveryV1Api.ts b/src/gen/apis/DiscoveryV1Api.ts index d1f8e7eaf5..21b75e6bfd 100644 --- a/src/gen/apis/DiscoveryV1Api.ts +++ b/src/gen/apis/DiscoveryV1Api.ts @@ -94,7 +94,7 @@ export class DiscoveryV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -240,7 +240,7 @@ export class DiscoveryV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -338,7 +338,7 @@ export class DiscoveryV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -367,7 +367,7 @@ export class DiscoveryV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -473,7 +473,7 @@ export class DiscoveryV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -587,7 +587,7 @@ export class DiscoveryV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -693,7 +693,7 @@ export class DiscoveryV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -745,7 +745,7 @@ export class DiscoveryV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -834,7 +834,7 @@ export class DiscoveryV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/EventsApi.ts b/src/gen/apis/EventsApi.ts index cfa039d4b7..a3c7c1e4a7 100644 --- a/src/gen/apis/EventsApi.ts +++ b/src/gen/apis/EventsApi.ts @@ -38,7 +38,7 @@ export class EventsApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/EventsV1Api.ts b/src/gen/apis/EventsV1Api.ts index c732f60208..7bf547df66 100644 --- a/src/gen/apis/EventsV1Api.ts +++ b/src/gen/apis/EventsV1Api.ts @@ -94,7 +94,7 @@ export class EventsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -240,7 +240,7 @@ export class EventsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -338,7 +338,7 @@ export class EventsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -367,7 +367,7 @@ export class EventsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -473,7 +473,7 @@ export class EventsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -587,7 +587,7 @@ export class EventsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -693,7 +693,7 @@ export class EventsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -745,7 +745,7 @@ export class EventsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -834,7 +834,7 @@ export class EventsV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/FlowcontrolApiserverApi.ts b/src/gen/apis/FlowcontrolApiserverApi.ts index 6d6e3207d5..7d66baf645 100644 --- a/src/gen/apis/FlowcontrolApiserverApi.ts +++ b/src/gen/apis/FlowcontrolApiserverApi.ts @@ -38,7 +38,7 @@ export class FlowcontrolApiserverApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/FlowcontrolApiserverV1Api.ts b/src/gen/apis/FlowcontrolApiserverV1Api.ts index 01f625351d..ff94feae6f 100644 --- a/src/gen/apis/FlowcontrolApiserverV1Api.ts +++ b/src/gen/apis/FlowcontrolApiserverV1Api.ts @@ -88,7 +88,7 @@ export class FlowcontrolApiserverV1ApiRequestFactory extends BaseAPIRequestFacto await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -161,7 +161,7 @@ export class FlowcontrolApiserverV1ApiRequestFactory extends BaseAPIRequestFacto await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -299,7 +299,7 @@ export class FlowcontrolApiserverV1ApiRequestFactory extends BaseAPIRequestFacto await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -437,7 +437,7 @@ export class FlowcontrolApiserverV1ApiRequestFactory extends BaseAPIRequestFacto await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -527,7 +527,7 @@ export class FlowcontrolApiserverV1ApiRequestFactory extends BaseAPIRequestFacto await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -617,7 +617,7 @@ export class FlowcontrolApiserverV1ApiRequestFactory extends BaseAPIRequestFacto await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -646,7 +646,7 @@ export class FlowcontrolApiserverV1ApiRequestFactory extends BaseAPIRequestFacto await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -752,7 +752,7 @@ export class FlowcontrolApiserverV1ApiRequestFactory extends BaseAPIRequestFacto await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -858,7 +858,7 @@ export class FlowcontrolApiserverV1ApiRequestFactory extends BaseAPIRequestFacto await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -956,7 +956,7 @@ export class FlowcontrolApiserverV1ApiRequestFactory extends BaseAPIRequestFacto await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1054,7 +1054,7 @@ export class FlowcontrolApiserverV1ApiRequestFactory extends BaseAPIRequestFacto await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1152,7 +1152,7 @@ export class FlowcontrolApiserverV1ApiRequestFactory extends BaseAPIRequestFacto await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1250,7 +1250,7 @@ export class FlowcontrolApiserverV1ApiRequestFactory extends BaseAPIRequestFacto await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1294,7 +1294,7 @@ export class FlowcontrolApiserverV1ApiRequestFactory extends BaseAPIRequestFacto await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1338,7 +1338,7 @@ export class FlowcontrolApiserverV1ApiRequestFactory extends BaseAPIRequestFacto await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1382,7 +1382,7 @@ export class FlowcontrolApiserverV1ApiRequestFactory extends BaseAPIRequestFacto await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1426,7 +1426,7 @@ export class FlowcontrolApiserverV1ApiRequestFactory extends BaseAPIRequestFacto await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1507,7 +1507,7 @@ export class FlowcontrolApiserverV1ApiRequestFactory extends BaseAPIRequestFacto await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1588,7 +1588,7 @@ export class FlowcontrolApiserverV1ApiRequestFactory extends BaseAPIRequestFacto await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1669,7 +1669,7 @@ export class FlowcontrolApiserverV1ApiRequestFactory extends BaseAPIRequestFacto await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1750,7 +1750,7 @@ export class FlowcontrolApiserverV1ApiRequestFactory extends BaseAPIRequestFacto await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/InternalApiserverApi.ts b/src/gen/apis/InternalApiserverApi.ts index 6136c054ee..5370289852 100644 --- a/src/gen/apis/InternalApiserverApi.ts +++ b/src/gen/apis/InternalApiserverApi.ts @@ -38,7 +38,7 @@ export class InternalApiserverApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/InternalApiserverV1alpha1Api.ts b/src/gen/apis/InternalApiserverV1alpha1Api.ts index 0f4dd2f70b..6fe2478fb3 100644 --- a/src/gen/apis/InternalApiserverV1alpha1Api.ts +++ b/src/gen/apis/InternalApiserverV1alpha1Api.ts @@ -86,7 +86,7 @@ export class InternalApiserverV1alpha1ApiRequestFactory extends BaseAPIRequestFa await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -224,7 +224,7 @@ export class InternalApiserverV1alpha1ApiRequestFactory extends BaseAPIRequestFa await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -314,7 +314,7 @@ export class InternalApiserverV1alpha1ApiRequestFactory extends BaseAPIRequestFa await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -343,7 +343,7 @@ export class InternalApiserverV1alpha1ApiRequestFactory extends BaseAPIRequestFa await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -449,7 +449,7 @@ export class InternalApiserverV1alpha1ApiRequestFactory extends BaseAPIRequestFa await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -547,7 +547,7 @@ export class InternalApiserverV1alpha1ApiRequestFactory extends BaseAPIRequestFa await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -645,7 +645,7 @@ export class InternalApiserverV1alpha1ApiRequestFactory extends BaseAPIRequestFa await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -689,7 +689,7 @@ export class InternalApiserverV1alpha1ApiRequestFactory extends BaseAPIRequestFa await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -733,7 +733,7 @@ export class InternalApiserverV1alpha1ApiRequestFactory extends BaseAPIRequestFa await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -814,7 +814,7 @@ export class InternalApiserverV1alpha1ApiRequestFactory extends BaseAPIRequestFa await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -895,7 +895,7 @@ export class InternalApiserverV1alpha1ApiRequestFactory extends BaseAPIRequestFa await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/LogsApi.ts b/src/gen/apis/LogsApi.ts index 3e05bc5f4c..3ae75da9ed 100644 --- a/src/gen/apis/LogsApi.ts +++ b/src/gen/apis/LogsApi.ts @@ -44,7 +44,7 @@ export class LogsApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -72,7 +72,7 @@ export class LogsApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/NetworkingApi.ts b/src/gen/apis/NetworkingApi.ts index 6f34b102f4..e9a6278561 100644 --- a/src/gen/apis/NetworkingApi.ts +++ b/src/gen/apis/NetworkingApi.ts @@ -38,7 +38,7 @@ export class NetworkingApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/NetworkingV1Api.ts b/src/gen/apis/NetworkingV1Api.ts index 78c7752232..2cabf84f66 100644 --- a/src/gen/apis/NetworkingV1Api.ts +++ b/src/gen/apis/NetworkingV1Api.ts @@ -12,12 +12,16 @@ import {SecurityAuthentication} from '../auth/auth.js'; import { V1APIResourceList } from '../models/V1APIResourceList.js'; import { V1DeleteOptions } from '../models/V1DeleteOptions.js'; +import { V1IPAddress } from '../models/V1IPAddress.js'; +import { V1IPAddressList } from '../models/V1IPAddressList.js'; import { V1Ingress } from '../models/V1Ingress.js'; import { V1IngressClass } from '../models/V1IngressClass.js'; import { V1IngressClassList } from '../models/V1IngressClassList.js'; import { V1IngressList } from '../models/V1IngressList.js'; import { V1NetworkPolicy } from '../models/V1NetworkPolicy.js'; import { V1NetworkPolicyList } from '../models/V1NetworkPolicyList.js'; +import { V1ServiceCIDR } from '../models/V1ServiceCIDR.js'; +import { V1ServiceCIDRList } from '../models/V1ServiceCIDRList.js'; import { V1Status } from '../models/V1Status.js'; /** @@ -25,6 +29,79 @@ import { V1Status } from '../models/V1Status.js'; */ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { + /** + * create an IPAddress + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async createIPAddress(body: V1IPAddress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("NetworkingV1Api", "createIPAddress", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/networking.k8s.io/v1/ipaddresses'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1IPAddress", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + /** * create an IngressClass * @param body @@ -90,7 +167,7 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -171,7 +248,7 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -252,7 +329,7 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -261,7 +338,80 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { } /** - * delete collection of IngressClass + * create a ServiceCIDR + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async createServiceCIDR(body: V1ServiceCIDR, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("NetworkingV1Api", "createServiceCIDR", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/networking.k8s.io/v1/servicecidrs'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1ServiceCIDR", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * delete collection of IPAddress * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -278,7 +428,7 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public async deleteCollectionIngressClass(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + public async deleteCollectionIPAddress(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { let _config = _options || this.configuration; @@ -297,7 +447,7 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/networking.k8s.io/v1/ingressclasses'; + const localVarPath = '/apis/networking.k8s.io/v1/ipaddresses'; // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); @@ -390,7 +540,7 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -399,8 +549,7 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { } /** - * delete collection of Ingress - * @param namespace object name and auth scope, such as for teams and projects + * delete collection of IngressClass * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -417,15 +566,9 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public async deleteCollectionNamespacedIngress(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + public async deleteCollectionIngressClass(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { let _config = _options || this.configuration; - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("NetworkingV1Api", "deleteCollectionNamespacedIngress", "namespace"); - } - - @@ -442,8 +585,7 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses' - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + const localVarPath = '/apis/networking.k8s.io/v1/ingressclasses'; // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); @@ -536,7 +678,7 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -545,7 +687,7 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { } /** - * delete collection of NetworkPolicy + * delete collection of Ingress * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. @@ -563,12 +705,12 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public async deleteCollectionNamespacedNetworkPolicy(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + public async deleteCollectionNamespacedIngress(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'namespace' is not null or undefined if (namespace === null || namespace === undefined) { - throw new RequiredError("NetworkingV1Api", "deleteCollectionNamespacedNetworkPolicy", "namespace"); + throw new RequiredError("NetworkingV1Api", "deleteCollectionNamespacedIngress", "namespace"); } @@ -588,7 +730,7 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies' + const localVarPath = '/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses' .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); // Make Request Context @@ -682,7 +824,7 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -691,22 +833,30 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { } /** - * delete an IngressClass - * @param name name of the IngressClass + * delete collection of NetworkPolicy + * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public async deleteIngressClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + public async deleteCollectionNamespacedNetworkPolicy(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { let _config = _options || this.configuration; - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("NetworkingV1Api", "deleteIngressClass", "name"); + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("NetworkingV1Api", "deleteCollectionNamespacedNetworkPolicy", "namespace"); } @@ -717,9 +867,17 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { + + + + + + + + // Path Params - const localVarPath = '/apis/networking.k8s.io/v1/ingressclasses/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + const localVarPath = '/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies' + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); @@ -730,11 +888,21 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); } + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + // Query Params if (dryRun !== undefined) { requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); } + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + // Query Params if (gracePeriodSeconds !== undefined) { requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); @@ -745,6 +913,16 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); } + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + // Query Params if (orphanDependents !== undefined) { requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); @@ -755,6 +933,26 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); } + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + // Body Params const contentType = ObjectSerializer.getPreferredMediaType([]); @@ -772,7 +970,7 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -781,30 +979,28 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { } /** - * delete an Ingress - * @param name name of the Ingress - * @param namespace object name and auth scope, such as for teams and projects + * delete collection of ServiceCIDR * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public async deleteNamespacedIngress(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + public async deleteCollectionServiceCIDR(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { let _config = _options || this.configuration; - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("NetworkingV1Api", "deleteNamespacedIngress", "name"); - } - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("NetworkingV1Api", "deleteNamespacedIngress", "namespace"); - } @@ -814,12 +1010,14 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { - // Path Params - const localVarPath = '/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - // Make Request Context + + + + // Path Params + const localVarPath = '/apis/networking.k8s.io/v1/servicecidrs'; + + // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") @@ -828,11 +1026,21 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); } + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + // Query Params if (dryRun !== undefined) { requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); } + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + // Query Params if (gracePeriodSeconds !== undefined) { requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); @@ -843,6 +1051,16 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); } + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + // Query Params if (orphanDependents !== undefined) { requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); @@ -853,6 +1071,26 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); } + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + // Body Params const contentType = ObjectSerializer.getPreferredMediaType([]); @@ -870,7 +1108,7 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -879,9 +1117,8 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { } /** - * delete a NetworkPolicy - * @param name name of the NetworkPolicy - * @param namespace object name and auth scope, such as for teams and projects + * delete an IPAddress + * @param name name of the IPAddress * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. @@ -890,18 +1127,12 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public async deleteNamespacedNetworkPolicy(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + public async deleteIPAddress(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("NetworkingV1Api", "deleteNamespacedNetworkPolicy", "name"); - } - - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("NetworkingV1Api", "deleteNamespacedNetworkPolicy", "namespace"); + throw new RequiredError("NetworkingV1Api", "deleteIPAddress", "name"); } @@ -913,9 +1144,8 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + const localVarPath = '/apis/networking.k8s.io/v1/ipaddresses/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); @@ -968,7 +1198,7 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -977,18 +1207,79 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { } /** - * get available resources + * delete an IngressClass + * @param name name of the IngressClass + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param body */ - public async getAPIResources(_options?: Configuration): Promise { + public async deleteIngressClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { let _config = _options || this.configuration; + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("NetworkingV1Api", "deleteIngressClass", "name"); + } + + + + + + + + + // Path Params - const localVarPath = '/apis/networking.k8s.io/v1/'; + const localVarPath = '/apis/networking.k8s.io/v1/ingressclasses/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); let authMethod: SecurityAuthentication | undefined; // Apply auth methods @@ -997,7 +1288,7 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1006,24 +1297,30 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { } /** - * list or watch objects of kind IngressClass + * delete an Ingress + * @param name name of the Ingress + * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param body */ - public async listIngressClass(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + public async deleteNamespacedIngress(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { let _config = _options || this.configuration; + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("NetworkingV1Api", "deleteNamespacedIngress", "name"); + } + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("NetworkingV1Api", "deleteNamespacedIngress", "namespace"); + } @@ -1034,10 +1331,12 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/networking.k8s.io/v1/ingressclasses'; + const localVarPath = '/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Query Params @@ -1046,55 +1345,39 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { } // Query Params - if (allowWatchBookmarks !== undefined) { - requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); - } - - // Query Params - if (_continue !== undefined) { - requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); - } - - // Query Params - if (fieldSelector !== undefined) { - requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); - } - - // Query Params - if (labelSelector !== undefined) { - requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); - } - - // Query Params - if (limit !== undefined) { - requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); } // Query Params - if (resourceVersion !== undefined) { - requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); } // Query Params - if (resourceVersionMatch !== undefined) { - requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); } // Query Params - if (sendInitialEvents !== undefined) { - requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); } // Query Params - if (timeoutSeconds !== undefined) { - requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); } - // Query Params - if (watch !== undefined) { - requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); - } + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); let authMethod: SecurityAuthentication | undefined; // Apply auth methods @@ -1103,7 +1386,7 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1112,24 +1395,30 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { } /** - * list or watch objects of kind Ingress - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * delete a NetworkPolicy + * @param name name of the NetworkPolicy + * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param body */ - public async listIngressForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + public async deleteNamespacedNetworkPolicy(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { let _config = _options || this.configuration; + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("NetworkingV1Api", "deleteNamespacedNetworkPolicy", "name"); + } + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("NetworkingV1Api", "deleteNamespacedNetworkPolicy", "namespace"); + } @@ -1140,68 +1429,144 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/networking.k8s.io/v1/ingresses'; + const localVarPath = '/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Query Params - if (allowWatchBookmarks !== undefined) { - requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); } // Query Params - if (_continue !== undefined) { - requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); } // Query Params - if (fieldSelector !== undefined) { - requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); } // Query Params - if (labelSelector !== undefined) { - requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); } // Query Params - if (limit !== undefined) { - requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * delete a ServiceCIDR + * @param name name of the ServiceCIDR + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param body + */ + public async deleteServiceCIDR(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("NetworkingV1Api", "deleteServiceCIDR", "name"); } + + + + + + + + + // Path Params + const localVarPath = '/apis/networking.k8s.io/v1/servicecidrs/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + // Query Params if (pretty !== undefined) { requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); } // Query Params - if (resourceVersion !== undefined) { - requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); } // Query Params - if (resourceVersionMatch !== undefined) { - requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); } // Query Params - if (sendInitialEvents !== undefined) { - requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); } // Query Params - if (timeoutSeconds !== undefined) { - requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); } // Query Params - if (watch !== undefined) { - requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); } + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + let authMethod: SecurityAuthentication | undefined; // Apply auth methods authMethod = _config.authMethods["BearerToken"] @@ -1209,7 +1574,7 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1218,8 +1583,36 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { } /** - * list or watch objects of kind Ingress - * @param namespace object name and auth scope, such as for teams and projects + * get available resources + */ + public async getAPIResources(_options?: Configuration): Promise { + let _config = _options || this.configuration; + + // Path Params + const localVarPath = '/apis/networking.k8s.io/v1/'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * list or watch objects of kind IPAddress * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. @@ -1232,15 +1625,9 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public async listNamespacedIngress(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + public async listIPAddress(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { let _config = _options || this.configuration; - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("NetworkingV1Api", "listNamespacedIngress", "namespace"); - } - - @@ -1253,8 +1640,7 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses' - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + const localVarPath = '/apis/networking.k8s.io/v1/ipaddresses'; // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); @@ -1323,7 +1709,7 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1332,8 +1718,7 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { } /** - * list or watch objects of kind NetworkPolicy - * @param namespace object name and auth scope, such as for teams and projects + * list or watch objects of kind IngressClass * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. @@ -1346,15 +1731,9 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public async listNamespacedNetworkPolicy(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + public async listIngressClass(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { let _config = _options || this.configuration; - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("NetworkingV1Api", "listNamespacedNetworkPolicy", "namespace"); - } - - @@ -1367,8 +1746,7 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies' - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + const localVarPath = '/apis/networking.k8s.io/v1/ingressclasses'; // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); @@ -1437,7 +1815,7 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1446,7 +1824,7 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { } /** - * list or watch objects of kind NetworkPolicy + * list or watch objects of kind Ingress * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1459,7 +1837,7 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public async listNetworkPolicyForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + public async listIngressForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { let _config = _options || this.configuration; @@ -1474,7 +1852,7 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/networking.k8s.io/v1/networkpolicies'; + const localVarPath = '/apis/networking.k8s.io/v1/ingresses'; // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); @@ -1543,7 +1921,749 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * list or watch objects of kind Ingress + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public async listNamespacedIngress(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("NetworkingV1Api", "listNamespacedIngress", "namespace"); + } + + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses' + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * list or watch objects of kind NetworkPolicy + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public async listNamespacedNetworkPolicy(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("NetworkingV1Api", "listNamespacedNetworkPolicy", "namespace"); + } + + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies' + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * list or watch objects of kind NetworkPolicy + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public async listNetworkPolicyForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/networking.k8s.io/v1/networkpolicies'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * list or watch objects of kind ServiceCIDR + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public async listServiceCIDR(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/networking.k8s.io/v1/servicecidrs'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * partially update the specified IPAddress + * @param name name of the IPAddress + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + */ + public async patchIPAddress(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("NetworkingV1Api", "patchIPAddress", "name"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("NetworkingV1Api", "patchIPAddress", "body"); + } + + + + + + + + // Path Params + const localVarPath = '/apis/networking.k8s.io/v1/ipaddresses/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + // Query Params + if (force !== undefined) { + requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json-patch+json", + + "application/merge-patch+json", + + "application/strategic-merge-patch+json", + + "application/apply-patch+yaml", + + "application/apply-patch+cbor" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "any", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * partially update the specified IngressClass + * @param name name of the IngressClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + */ + public async patchIngressClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("NetworkingV1Api", "patchIngressClass", "name"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("NetworkingV1Api", "patchIngressClass", "body"); + } + + + + + + + + // Path Params + const localVarPath = '/apis/networking.k8s.io/v1/ingressclasses/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + // Query Params + if (force !== undefined) { + requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json-patch+json", + + "application/merge-patch+json", + + "application/strategic-merge-patch+json", + + "application/apply-patch+yaml", + + "application/apply-patch+cbor" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "any", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * partially update the specified Ingress + * @param name name of the Ingress + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + */ + public async patchNamespacedIngress(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("NetworkingV1Api", "patchNamespacedIngress", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("NetworkingV1Api", "patchNamespacedIngress", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("NetworkingV1Api", "patchNamespacedIngress", "body"); + } + + + + + + + + // Path Params + const localVarPath = '/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + // Query Params + if (force !== undefined) { + requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json-patch+json", + + "application/merge-patch+json", + + "application/strategic-merge-patch+json", + + "application/apply-patch+yaml", + + "application/apply-patch+cbor" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "any", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1552,8 +2672,9 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { } /** - * partially update the specified IngressClass - * @param name name of the IngressClass + * partially update status of the specified Ingress + * @param name name of the Ingress + * @param namespace object name and auth scope, such as for teams and projects * @param body * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -1561,18 +2682,24 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public async patchIngressClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + public async patchNamespacedIngressStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("NetworkingV1Api", "patchIngressClass", "name"); + throw new RequiredError("NetworkingV1Api", "patchNamespacedIngressStatus", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("NetworkingV1Api", "patchNamespacedIngressStatus", "namespace"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("NetworkingV1Api", "patchIngressClass", "body"); + throw new RequiredError("NetworkingV1Api", "patchNamespacedIngressStatus", "body"); } @@ -1582,8 +2709,9 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/networking.k8s.io/v1/ingressclasses/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + const localVarPath = '/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); @@ -1641,7 +2769,7 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1650,8 +2778,8 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { } /** - * partially update the specified Ingress - * @param name name of the Ingress + * partially update the specified NetworkPolicy + * @param name name of the NetworkPolicy * @param namespace object name and auth scope, such as for teams and projects * @param body * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). @@ -1660,24 +2788,24 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public async patchNamespacedIngress(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + public async patchNamespacedNetworkPolicy(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("NetworkingV1Api", "patchNamespacedIngress", "name"); + throw new RequiredError("NetworkingV1Api", "patchNamespacedNetworkPolicy", "name"); } // verify required parameter 'namespace' is not null or undefined if (namespace === null || namespace === undefined) { - throw new RequiredError("NetworkingV1Api", "patchNamespacedIngress", "namespace"); + throw new RequiredError("NetworkingV1Api", "patchNamespacedNetworkPolicy", "namespace"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("NetworkingV1Api", "patchNamespacedIngress", "body"); + throw new RequiredError("NetworkingV1Api", "patchNamespacedNetworkPolicy", "body"); } @@ -1687,7 +2815,7 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}' + const localVarPath = '/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}' .replace('{' + 'name' + '}', encodeURIComponent(String(name))) .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); @@ -1747,7 +2875,7 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1756,9 +2884,8 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { } /** - * partially update status of the specified Ingress - * @param name name of the Ingress - * @param namespace object name and auth scope, such as for teams and projects + * partially update the specified ServiceCIDR + * @param name name of the ServiceCIDR * @param body * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -1766,24 +2893,18 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public async patchNamespacedIngressStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + public async patchServiceCIDR(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("NetworkingV1Api", "patchNamespacedIngressStatus", "name"); - } - - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("NetworkingV1Api", "patchNamespacedIngressStatus", "namespace"); + throw new RequiredError("NetworkingV1Api", "patchServiceCIDR", "name"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("NetworkingV1Api", "patchNamespacedIngressStatus", "body"); + throw new RequiredError("NetworkingV1Api", "patchServiceCIDR", "body"); } @@ -1793,9 +2914,8 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + const localVarPath = '/apis/networking.k8s.io/v1/servicecidrs/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); @@ -1853,7 +2973,7 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1862,9 +2982,8 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { } /** - * partially update the specified NetworkPolicy - * @param name name of the NetworkPolicy - * @param namespace object name and auth scope, such as for teams and projects + * partially update status of the specified ServiceCIDR + * @param name name of the ServiceCIDR * @param body * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -1872,24 +2991,18 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public async patchNamespacedNetworkPolicy(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + public async patchServiceCIDRStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("NetworkingV1Api", "patchNamespacedNetworkPolicy", "name"); - } - - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("NetworkingV1Api", "patchNamespacedNetworkPolicy", "namespace"); + throw new RequiredError("NetworkingV1Api", "patchServiceCIDRStatus", "name"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("NetworkingV1Api", "patchNamespacedNetworkPolicy", "body"); + throw new RequiredError("NetworkingV1Api", "patchServiceCIDRStatus", "body"); } @@ -1899,9 +3012,8 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + const localVarPath = '/apis/networking.k8s.io/v1/servicecidrs/{name}/status' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); @@ -1959,7 +3071,51 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * read the specified IPAddress + * @param name name of the IPAddress + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + */ + public async readIPAddress(name: string, pretty?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("NetworkingV1Api", "readIPAddress", "name"); + } + + + + // Path Params + const localVarPath = '/apis/networking.k8s.io/v1/ipaddresses/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2003,7 +3159,163 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * read the specified Ingress + * @param name name of the Ingress + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + */ + public async readNamespacedIngress(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("NetworkingV1Api", "readNamespacedIngress", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("NetworkingV1Api", "readNamespacedIngress", "namespace"); + } + + + + // Path Params + const localVarPath = '/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * read status of the specified Ingress + * @param name name of the Ingress + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + */ + public async readNamespacedIngressStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("NetworkingV1Api", "readNamespacedIngressStatus", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("NetworkingV1Api", "readNamespacedIngressStatus", "namespace"); + } + + + + // Path Params + const localVarPath = '/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * read the specified NetworkPolicy + * @param name name of the NetworkPolicy + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + */ + public async readNamespacedNetworkPolicy(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("NetworkingV1Api", "readNamespacedNetworkPolicy", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("NetworkingV1Api", "readNamespacedNetworkPolicy", "namespace"); + } + + + + // Path Params + const localVarPath = '/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2012,31 +3324,23 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { } /** - * read the specified Ingress - * @param name name of the Ingress - * @param namespace object name and auth scope, such as for teams and projects + * read the specified ServiceCIDR + * @param name name of the ServiceCIDR * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public async readNamespacedIngress(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + public async readServiceCIDR(name: string, pretty?: string, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("NetworkingV1Api", "readNamespacedIngress", "name"); - } - - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("NetworkingV1Api", "readNamespacedIngress", "namespace"); + throw new RequiredError("NetworkingV1Api", "readServiceCIDR", "name"); } // Path Params - const localVarPath = '/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + const localVarPath = '/apis/networking.k8s.io/v1/servicecidrs/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); @@ -2055,7 +3359,7 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2064,31 +3368,23 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { } /** - * read status of the specified Ingress - * @param name name of the Ingress - * @param namespace object name and auth scope, such as for teams and projects + * read status of the specified ServiceCIDR + * @param name name of the ServiceCIDR * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public async readNamespacedIngressStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + public async readServiceCIDRStatus(name: string, pretty?: string, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("NetworkingV1Api", "readNamespacedIngressStatus", "name"); - } - - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("NetworkingV1Api", "readNamespacedIngressStatus", "namespace"); + throw new RequiredError("NetworkingV1Api", "readServiceCIDRStatus", "name"); } // Path Params - const localVarPath = '/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + const localVarPath = '/apis/networking.k8s.io/v1/servicecidrs/{name}/status' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); @@ -2107,7 +3403,7 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2116,34 +3412,39 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { } /** - * read the specified NetworkPolicy - * @param name name of the NetworkPolicy - * @param namespace object name and auth scope, such as for teams and projects + * replace the specified IPAddress + * @param name name of the IPAddress + * @param body * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. */ - public async readNamespacedNetworkPolicy(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + public async replaceIPAddress(name: string, body: V1IPAddress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("NetworkingV1Api", "readNamespacedNetworkPolicy", "name"); + throw new RequiredError("NetworkingV1Api", "replaceIPAddress", "name"); } - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("NetworkingV1Api", "readNamespacedNetworkPolicy", "namespace"); + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("NetworkingV1Api", "replaceIPAddress", "body"); } + + + // Path Params - const localVarPath = '/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + const localVarPath = '/apis/networking.k8s.io/v1/ipaddresses/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Query Params @@ -2151,6 +3452,30 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); } + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1IPAddress", ""), + contentType + ); + requestContext.setBody(serializedBody); let authMethod: SecurityAuthentication | undefined; // Apply auth methods @@ -2159,7 +3484,7 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2240,7 +3565,7 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2329,7 +3654,7 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2418,7 +3743,7 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2507,7 +3832,169 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * replace the specified ServiceCIDR + * @param name name of the ServiceCIDR + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async replaceServiceCIDR(name: string, body: V1ServiceCIDR, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("NetworkingV1Api", "replaceServiceCIDR", "name"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("NetworkingV1Api", "replaceServiceCIDR", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/networking.k8s.io/v1/servicecidrs/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1ServiceCIDR", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * replace status of the specified ServiceCIDR + * @param name name of the ServiceCIDR + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async replaceServiceCIDRStatus(name: string, body: V1ServiceCIDR, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("NetworkingV1Api", "replaceServiceCIDRStatus", "name"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("NetworkingV1Api", "replaceServiceCIDRStatus", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/networking.k8s.io/v1/servicecidrs/{name}/status' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1ServiceCIDR", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2517,7 +4004,53 @@ export class NetworkingV1ApiRequestFactory extends BaseAPIRequestFactory { } -export class NetworkingV1ApiResponseProcessor { +export class NetworkingV1ApiResponseProcessor { + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createIPAddress + * @throws ApiException if the response code was not in [200, 299] + */ + public async createIPAddressWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1IPAddress = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1IPAddress", "" + ) as V1IPAddress; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1IPAddress = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1IPAddress", "" + ) as V1IPAddress; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1IPAddress = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1IPAddress", "" + ) as V1IPAddress; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1IPAddress = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1IPAddress", "" + ) as V1IPAddress; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } /** * Unwraps the actual response sent by the server from the response context and deserializes the response content @@ -2657,6 +4190,84 @@ export class NetworkingV1ApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createServiceCIDR + * @throws ApiException if the response code was not in [200, 299] + */ + public async createServiceCIDRWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ServiceCIDR = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ServiceCIDR", "" + ) as V1ServiceCIDR; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1ServiceCIDR = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ServiceCIDR", "" + ) as V1ServiceCIDR; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1ServiceCIDR = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ServiceCIDR", "" + ) as V1ServiceCIDR; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ServiceCIDR = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ServiceCIDR", "" + ) as V1ServiceCIDR; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteCollectionIPAddress + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteCollectionIPAddressWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -2753,6 +4364,77 @@ export class NetworkingV1ApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteCollectionServiceCIDR + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteCollectionServiceCIDRWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteIPAddress + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteIPAddressWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -2870,6 +4552,45 @@ export class NetworkingV1ApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteServiceCIDR + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteServiceCIDRWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -2902,6 +4623,38 @@ export class NetworkingV1ApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listIPAddress + * @throws ApiException if the response code was not in [200, 299] + */ + public async listIPAddressWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1IPAddressList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1IPAddressList", "" + ) as V1IPAddressList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1IPAddressList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1IPAddressList", "" + ) as V1IPAddressList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -2956,10 +4709,74 @@ export class NetworkingV1ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1IngressList = ObjectSerializer.deserialize( + const body: V1IngressList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1IngressList", "" + ) as V1IngressList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listNamespacedIngress + * @throws ApiException if the response code was not in [200, 299] + */ + public async listNamespacedIngressWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1IngressList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1IngressList", "" + ) as V1IngressList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1IngressList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1IngressList", "" + ) as V1IngressList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listNamespacedNetworkPolicy + * @throws ApiException if the response code was not in [200, 299] + */ + public async listNamespacedNetworkPolicyWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1NetworkPolicyList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1NetworkPolicyList", "" + ) as V1NetworkPolicyList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1NetworkPolicyList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1IngressList", "" - ) as V1IngressList; + "V1NetworkPolicyList", "" + ) as V1NetworkPolicyList; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -2970,16 +4787,16 @@ export class NetworkingV1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to listNamespacedIngress + * @params response Response returned by the server for a request to listNetworkPolicyForAllNamespaces * @throws ApiException if the response code was not in [200, 299] */ - public async listNamespacedIngressWithHttpInfo(response: ResponseContext): Promise> { + public async listNetworkPolicyForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1IngressList = ObjectSerializer.deserialize( + const body: V1NetworkPolicyList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1IngressList", "" - ) as V1IngressList; + "V1NetworkPolicyList", "" + ) as V1NetworkPolicyList; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -2988,10 +4805,10 @@ export class NetworkingV1ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1IngressList = ObjectSerializer.deserialize( + const body: V1NetworkPolicyList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1IngressList", "" - ) as V1IngressList; + "V1NetworkPolicyList", "" + ) as V1NetworkPolicyList; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -3002,16 +4819,16 @@ export class NetworkingV1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to listNamespacedNetworkPolicy + * @params response Response returned by the server for a request to listServiceCIDR * @throws ApiException if the response code was not in [200, 299] */ - public async listNamespacedNetworkPolicyWithHttpInfo(response: ResponseContext): Promise> { + public async listServiceCIDRWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1NetworkPolicyList = ObjectSerializer.deserialize( + const body: V1ServiceCIDRList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1NetworkPolicyList", "" - ) as V1NetworkPolicyList; + "V1ServiceCIDRList", "" + ) as V1ServiceCIDRList; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -3020,10 +4837,10 @@ export class NetworkingV1ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1NetworkPolicyList = ObjectSerializer.deserialize( + const body: V1ServiceCIDRList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1NetworkPolicyList", "" - ) as V1NetworkPolicyList; + "V1ServiceCIDRList", "" + ) as V1ServiceCIDRList; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -3034,16 +4851,23 @@ export class NetworkingV1ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to listNetworkPolicyForAllNamespaces + * @params response Response returned by the server for a request to patchIPAddress * @throws ApiException if the response code was not in [200, 299] */ - public async listNetworkPolicyForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { + public async patchIPAddressWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1NetworkPolicyList = ObjectSerializer.deserialize( + const body: V1IPAddress = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1NetworkPolicyList", "" - ) as V1NetworkPolicyList; + "V1IPAddress", "" + ) as V1IPAddress; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1IPAddress = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1IPAddress", "" + ) as V1IPAddress; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -3052,10 +4876,10 @@ export class NetworkingV1ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1NetworkPolicyList = ObjectSerializer.deserialize( + const body: V1IPAddress = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1NetworkPolicyList", "" - ) as V1NetworkPolicyList; + "V1IPAddress", "" + ) as V1IPAddress; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -3218,6 +5042,116 @@ export class NetworkingV1ApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to patchServiceCIDR + * @throws ApiException if the response code was not in [200, 299] + */ + public async patchServiceCIDRWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ServiceCIDR = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ServiceCIDR", "" + ) as V1ServiceCIDR; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1ServiceCIDR = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ServiceCIDR", "" + ) as V1ServiceCIDR; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ServiceCIDR = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ServiceCIDR", "" + ) as V1ServiceCIDR; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to patchServiceCIDRStatus + * @throws ApiException if the response code was not in [200, 299] + */ + public async patchServiceCIDRStatusWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ServiceCIDR = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ServiceCIDR", "" + ) as V1ServiceCIDR; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1ServiceCIDR = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ServiceCIDR", "" + ) as V1ServiceCIDR; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ServiceCIDR = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ServiceCIDR", "" + ) as V1ServiceCIDR; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to readIPAddress + * @throws ApiException if the response code was not in [200, 299] + */ + public async readIPAddressWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1IPAddress = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1IPAddress", "" + ) as V1IPAddress; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1IPAddress = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1IPAddress", "" + ) as V1IPAddress; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -3346,6 +5280,109 @@ export class NetworkingV1ApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to readServiceCIDR + * @throws ApiException if the response code was not in [200, 299] + */ + public async readServiceCIDRWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ServiceCIDR = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ServiceCIDR", "" + ) as V1ServiceCIDR; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ServiceCIDR = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ServiceCIDR", "" + ) as V1ServiceCIDR; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to readServiceCIDRStatus + * @throws ApiException if the response code was not in [200, 299] + */ + public async readServiceCIDRStatusWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ServiceCIDR = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ServiceCIDR", "" + ) as V1ServiceCIDR; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ServiceCIDR = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ServiceCIDR", "" + ) as V1ServiceCIDR; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to replaceIPAddress + * @throws ApiException if the response code was not in [200, 299] + */ + public async replaceIPAddressWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1IPAddress = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1IPAddress", "" + ) as V1IPAddress; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1IPAddress = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1IPAddress", "" + ) as V1IPAddress; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1IPAddress = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1IPAddress", "" + ) as V1IPAddress; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -3502,4 +5539,82 @@ export class NetworkingV1ApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to replaceServiceCIDR + * @throws ApiException if the response code was not in [200, 299] + */ + public async replaceServiceCIDRWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ServiceCIDR = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ServiceCIDR", "" + ) as V1ServiceCIDR; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1ServiceCIDR = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ServiceCIDR", "" + ) as V1ServiceCIDR; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ServiceCIDR = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ServiceCIDR", "" + ) as V1ServiceCIDR; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to replaceServiceCIDRStatus + * @throws ApiException if the response code was not in [200, 299] + */ + public async replaceServiceCIDRStatusWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ServiceCIDR = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ServiceCIDR", "" + ) as V1ServiceCIDR; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1ServiceCIDR = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ServiceCIDR", "" + ) as V1ServiceCIDR; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ServiceCIDR = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ServiceCIDR", "" + ) as V1ServiceCIDR; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + } diff --git a/src/gen/apis/NetworkingV1beta1Api.ts b/src/gen/apis/NetworkingV1beta1Api.ts index 4944328598..1f0887cbf2 100644 --- a/src/gen/apis/NetworkingV1beta1Api.ts +++ b/src/gen/apis/NetworkingV1beta1Api.ts @@ -88,7 +88,7 @@ export class NetworkingV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -161,7 +161,7 @@ export class NetworkingV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -299,7 +299,7 @@ export class NetworkingV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -437,7 +437,7 @@ export class NetworkingV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -527,7 +527,7 @@ export class NetworkingV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -617,7 +617,7 @@ export class NetworkingV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -646,7 +646,7 @@ export class NetworkingV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -752,7 +752,7 @@ export class NetworkingV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -858,7 +858,7 @@ export class NetworkingV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -956,7 +956,7 @@ export class NetworkingV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1054,7 +1054,7 @@ export class NetworkingV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1152,7 +1152,7 @@ export class NetworkingV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1196,7 +1196,7 @@ export class NetworkingV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1240,7 +1240,7 @@ export class NetworkingV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1284,7 +1284,7 @@ export class NetworkingV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1365,7 +1365,7 @@ export class NetworkingV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1446,7 +1446,7 @@ export class NetworkingV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1527,7 +1527,7 @@ export class NetworkingV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/NodeApi.ts b/src/gen/apis/NodeApi.ts index aa40922246..3fd916c9d1 100644 --- a/src/gen/apis/NodeApi.ts +++ b/src/gen/apis/NodeApi.ts @@ -38,7 +38,7 @@ export class NodeApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/NodeV1Api.ts b/src/gen/apis/NodeV1Api.ts index dfcec55190..86d92664e0 100644 --- a/src/gen/apis/NodeV1Api.ts +++ b/src/gen/apis/NodeV1Api.ts @@ -86,7 +86,7 @@ export class NodeV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -224,7 +224,7 @@ export class NodeV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -314,7 +314,7 @@ export class NodeV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -343,7 +343,7 @@ export class NodeV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -449,7 +449,7 @@ export class NodeV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -547,7 +547,7 @@ export class NodeV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -591,7 +591,7 @@ export class NodeV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -672,7 +672,7 @@ export class NodeV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/OpenidApi.ts b/src/gen/apis/OpenidApi.ts index ebcde32aa5..0538fa731b 100644 --- a/src/gen/apis/OpenidApi.ts +++ b/src/gen/apis/OpenidApi.ts @@ -37,7 +37,7 @@ export class OpenidApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/PolicyApi.ts b/src/gen/apis/PolicyApi.ts index edcf289054..1e6b6da20e 100644 --- a/src/gen/apis/PolicyApi.ts +++ b/src/gen/apis/PolicyApi.ts @@ -38,7 +38,7 @@ export class PolicyApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/PolicyV1Api.ts b/src/gen/apis/PolicyV1Api.ts index 0541756d1f..70c4c0601c 100644 --- a/src/gen/apis/PolicyV1Api.ts +++ b/src/gen/apis/PolicyV1Api.ts @@ -94,7 +94,7 @@ export class PolicyV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -240,7 +240,7 @@ export class PolicyV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -338,7 +338,7 @@ export class PolicyV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -367,7 +367,7 @@ export class PolicyV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -481,7 +481,7 @@ export class PolicyV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -587,7 +587,7 @@ export class PolicyV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -693,7 +693,7 @@ export class PolicyV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -799,7 +799,7 @@ export class PolicyV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -851,7 +851,7 @@ export class PolicyV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -903,7 +903,7 @@ export class PolicyV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -992,7 +992,7 @@ export class PolicyV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1081,7 +1081,7 @@ export class PolicyV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/RbacAuthorizationApi.ts b/src/gen/apis/RbacAuthorizationApi.ts index 34823b0311..d33ce577bf 100644 --- a/src/gen/apis/RbacAuthorizationApi.ts +++ b/src/gen/apis/RbacAuthorizationApi.ts @@ -38,7 +38,7 @@ export class RbacAuthorizationApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/RbacAuthorizationV1Api.ts b/src/gen/apis/RbacAuthorizationV1Api.ts index ced41208df..c27115083b 100644 --- a/src/gen/apis/RbacAuthorizationV1Api.ts +++ b/src/gen/apis/RbacAuthorizationV1Api.ts @@ -92,7 +92,7 @@ export class RbacAuthorizationV1ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -165,7 +165,7 @@ export class RbacAuthorizationV1ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -246,7 +246,7 @@ export class RbacAuthorizationV1ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -327,7 +327,7 @@ export class RbacAuthorizationV1ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -417,7 +417,7 @@ export class RbacAuthorizationV1ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -507,7 +507,7 @@ export class RbacAuthorizationV1ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -645,7 +645,7 @@ export class RbacAuthorizationV1ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -783,7 +783,7 @@ export class RbacAuthorizationV1ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -929,7 +929,7 @@ export class RbacAuthorizationV1ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1075,7 +1075,7 @@ export class RbacAuthorizationV1ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1173,7 +1173,7 @@ export class RbacAuthorizationV1ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1271,7 +1271,7 @@ export class RbacAuthorizationV1ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1300,7 +1300,7 @@ export class RbacAuthorizationV1ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1406,7 +1406,7 @@ export class RbacAuthorizationV1ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1512,7 +1512,7 @@ export class RbacAuthorizationV1ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1626,7 +1626,7 @@ export class RbacAuthorizationV1ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1740,7 +1740,7 @@ export class RbacAuthorizationV1ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1846,7 +1846,7 @@ export class RbacAuthorizationV1ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1952,7 +1952,7 @@ export class RbacAuthorizationV1ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2050,7 +2050,7 @@ export class RbacAuthorizationV1ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2148,7 +2148,7 @@ export class RbacAuthorizationV1ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2254,7 +2254,7 @@ export class RbacAuthorizationV1ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2360,7 +2360,7 @@ export class RbacAuthorizationV1ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2404,7 +2404,7 @@ export class RbacAuthorizationV1ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2448,7 +2448,7 @@ export class RbacAuthorizationV1ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2500,7 +2500,7 @@ export class RbacAuthorizationV1ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2552,7 +2552,7 @@ export class RbacAuthorizationV1ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2633,7 +2633,7 @@ export class RbacAuthorizationV1ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2714,7 +2714,7 @@ export class RbacAuthorizationV1ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2803,7 +2803,7 @@ export class RbacAuthorizationV1ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2892,7 +2892,7 @@ export class RbacAuthorizationV1ApiRequestFactory extends BaseAPIRequestFactory await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/ResourceApi.ts b/src/gen/apis/ResourceApi.ts index 030fc47404..59152c891d 100644 --- a/src/gen/apis/ResourceApi.ts +++ b/src/gen/apis/ResourceApi.ts @@ -38,7 +38,7 @@ export class ResourceApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/ResourceV1Api.ts b/src/gen/apis/ResourceV1Api.ts new file mode 100644 index 0000000000..f88ea00c32 --- /dev/null +++ b/src/gen/apis/ResourceV1Api.ts @@ -0,0 +1,4396 @@ +// TODO: better import syntax? +import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi.js'; +import {Configuration} from '../configuration.js'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http.js'; +import FormData from "form-data"; +import { URLSearchParams } from 'url'; +import {ObjectSerializer} from '../models/ObjectSerializer.js'; +import {ApiException} from './exception.js'; +import {canConsumeForm, isCodeInRange} from '../util.js'; +import {SecurityAuthentication} from '../auth/auth.js'; + + +import { ResourceV1ResourceClaim } from '../models/ResourceV1ResourceClaim.js'; +import { V1APIResourceList } from '../models/V1APIResourceList.js'; +import { V1DeleteOptions } from '../models/V1DeleteOptions.js'; +import { V1DeviceClass } from '../models/V1DeviceClass.js'; +import { V1DeviceClassList } from '../models/V1DeviceClassList.js'; +import { V1ResourceClaimList } from '../models/V1ResourceClaimList.js'; +import { V1ResourceClaimTemplate } from '../models/V1ResourceClaimTemplate.js'; +import { V1ResourceClaimTemplateList } from '../models/V1ResourceClaimTemplateList.js'; +import { V1ResourceSlice } from '../models/V1ResourceSlice.js'; +import { V1ResourceSliceList } from '../models/V1ResourceSliceList.js'; +import { V1Status } from '../models/V1Status.js'; + +/** + * no description + */ +export class ResourceV1ApiRequestFactory extends BaseAPIRequestFactory { + + /** + * create a DeviceClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async createDeviceClass(body: V1DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1Api", "createDeviceClass", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/deviceclasses'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeviceClass", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * create a ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async createNamespacedResourceClaim(namespace: string, body: ResourceV1ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "createNamespacedResourceClaim", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1Api", "createNamespacedResourceClaim", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims' + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "ResourceV1ResourceClaim", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * create a ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async createNamespacedResourceClaimTemplate(namespace: string, body: V1ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "createNamespacedResourceClaimTemplate", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1Api", "createNamespacedResourceClaimTemplate", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates' + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1ResourceClaimTemplate", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * create a ResourceSlice + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async createResourceSlice(body: V1ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1Api", "createResourceSlice", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/resourceslices'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1ResourceSlice", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * delete collection of DeviceClass + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public async deleteCollectionDeviceClass(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + + + + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/deviceclasses'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * delete collection of ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public async deleteCollectionNamespacedResourceClaim(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "deleteCollectionNamespacedResourceClaim", "namespace"); + } + + + + + + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims' + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * delete collection of ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public async deleteCollectionNamespacedResourceClaimTemplate(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "deleteCollectionNamespacedResourceClaimTemplate", "namespace"); + } + + + + + + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates' + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * delete collection of ResourceSlice + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public async deleteCollectionResourceSlice(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + + + + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/resourceslices'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * delete a DeviceClass + * @param name name of the DeviceClass + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param body + */ + public async deleteDeviceClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "deleteDeviceClass", "name"); + } + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/deviceclasses/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * delete a ResourceClaim + * @param name name of the ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param body + */ + public async deleteNamespacedResourceClaim(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "deleteNamespacedResourceClaim", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "deleteNamespacedResourceClaim", "namespace"); + } + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * delete a ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param body + */ + public async deleteNamespacedResourceClaimTemplate(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "deleteNamespacedResourceClaimTemplate", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "deleteNamespacedResourceClaimTemplate", "namespace"); + } + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * delete a ResourceSlice + * @param name name of the ResourceSlice + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param body + */ + public async deleteResourceSlice(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "deleteResourceSlice", "name"); + } + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/resourceslices/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * get available resources + */ + public async getAPIResources(_options?: Configuration): Promise { + let _config = _options || this.configuration; + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * list or watch objects of kind DeviceClass + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public async listDeviceClass(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/deviceclasses'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * list or watch objects of kind ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public async listNamespacedResourceClaim(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "listNamespacedResourceClaim", "namespace"); + } + + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims' + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * list or watch objects of kind ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public async listNamespacedResourceClaimTemplate(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "listNamespacedResourceClaimTemplate", "namespace"); + } + + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates' + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * list or watch objects of kind ResourceClaim + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public async listResourceClaimForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/resourceclaims'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * list or watch objects of kind ResourceClaimTemplate + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public async listResourceClaimTemplateForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/resourceclaimtemplates'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * list or watch objects of kind ResourceSlice + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public async listResourceSlice(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/resourceslices'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * partially update the specified DeviceClass + * @param name name of the DeviceClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + */ + public async patchDeviceClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "patchDeviceClass", "name"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1Api", "patchDeviceClass", "body"); + } + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/deviceclasses/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + // Query Params + if (force !== undefined) { + requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json-patch+json", + + "application/merge-patch+json", + + "application/strategic-merge-patch+json", + + "application/apply-patch+yaml", + + "application/apply-patch+cbor" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "any", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * partially update the specified ResourceClaim + * @param name name of the ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + */ + public async patchNamespacedResourceClaim(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "patchNamespacedResourceClaim", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "patchNamespacedResourceClaim", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1Api", "patchNamespacedResourceClaim", "body"); + } + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + // Query Params + if (force !== undefined) { + requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json-patch+json", + + "application/merge-patch+json", + + "application/strategic-merge-patch+json", + + "application/apply-patch+yaml", + + "application/apply-patch+cbor" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "any", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * partially update status of the specified ResourceClaim + * @param name name of the ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + */ + public async patchNamespacedResourceClaimStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "patchNamespacedResourceClaimStatus", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "patchNamespacedResourceClaimStatus", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1Api", "patchNamespacedResourceClaimStatus", "body"); + } + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + // Query Params + if (force !== undefined) { + requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json-patch+json", + + "application/merge-patch+json", + + "application/strategic-merge-patch+json", + + "application/apply-patch+yaml", + + "application/apply-patch+cbor" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "any", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * partially update the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + */ + public async patchNamespacedResourceClaimTemplate(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "patchNamespacedResourceClaimTemplate", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "patchNamespacedResourceClaimTemplate", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1Api", "patchNamespacedResourceClaimTemplate", "body"); + } + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + // Query Params + if (force !== undefined) { + requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json-patch+json", + + "application/merge-patch+json", + + "application/strategic-merge-patch+json", + + "application/apply-patch+yaml", + + "application/apply-patch+cbor" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "any", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * partially update the specified ResourceSlice + * @param name name of the ResourceSlice + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + */ + public async patchResourceSlice(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "patchResourceSlice", "name"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1Api", "patchResourceSlice", "body"); + } + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/resourceslices/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + // Query Params + if (force !== undefined) { + requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json-patch+json", + + "application/merge-patch+json", + + "application/strategic-merge-patch+json", + + "application/apply-patch+yaml", + + "application/apply-patch+cbor" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "any", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * read the specified DeviceClass + * @param name name of the DeviceClass + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + */ + public async readDeviceClass(name: string, pretty?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "readDeviceClass", "name"); + } + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/deviceclasses/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * read the specified ResourceClaim + * @param name name of the ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + */ + public async readNamespacedResourceClaim(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "readNamespacedResourceClaim", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "readNamespacedResourceClaim", "namespace"); + } + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * read status of the specified ResourceClaim + * @param name name of the ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + */ + public async readNamespacedResourceClaimStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "readNamespacedResourceClaimStatus", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "readNamespacedResourceClaimStatus", "namespace"); + } + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * read the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + */ + public async readNamespacedResourceClaimTemplate(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "readNamespacedResourceClaimTemplate", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "readNamespacedResourceClaimTemplate", "namespace"); + } + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * read the specified ResourceSlice + * @param name name of the ResourceSlice + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + */ + public async readResourceSlice(name: string, pretty?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "readResourceSlice", "name"); + } + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/resourceslices/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * replace the specified DeviceClass + * @param name name of the DeviceClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async replaceDeviceClass(name: string, body: V1DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "replaceDeviceClass", "name"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1Api", "replaceDeviceClass", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/deviceclasses/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeviceClass", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * replace the specified ResourceClaim + * @param name name of the ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async replaceNamespacedResourceClaim(name: string, namespace: string, body: ResourceV1ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "replaceNamespacedResourceClaim", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "replaceNamespacedResourceClaim", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1Api", "replaceNamespacedResourceClaim", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "ResourceV1ResourceClaim", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * replace status of the specified ResourceClaim + * @param name name of the ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async replaceNamespacedResourceClaimStatus(name: string, namespace: string, body: ResourceV1ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "replaceNamespacedResourceClaimStatus", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "replaceNamespacedResourceClaimStatus", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1Api", "replaceNamespacedResourceClaimStatus", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "ResourceV1ResourceClaim", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * replace the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async replaceNamespacedResourceClaimTemplate(name: string, namespace: string, body: V1ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "replaceNamespacedResourceClaimTemplate", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1Api", "replaceNamespacedResourceClaimTemplate", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1Api", "replaceNamespacedResourceClaimTemplate", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1ResourceClaimTemplate", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * replace the specified ResourceSlice + * @param name name of the ResourceSlice + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async replaceResourceSlice(name: string, body: V1ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1Api", "replaceResourceSlice", "name"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1Api", "replaceResourceSlice", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1/resourceslices/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1ResourceSlice", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + +} + +export class ResourceV1ApiResponseProcessor { + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createDeviceClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async createDeviceClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createNamespacedResourceClaim + * @throws ApiException if the response code was not in [200, 299] + */ + public async createNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createNamespacedResourceClaimTemplate + * @throws ApiException if the response code was not in [200, 299] + */ + public async createNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createResourceSlice + * @throws ApiException if the response code was not in [200, 299] + */ + public async createResourceSliceWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteCollectionDeviceClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteCollectionDeviceClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteCollectionNamespacedResourceClaim + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteCollectionNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteCollectionNamespacedResourceClaimTemplate + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteCollectionResourceSlice + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteCollectionResourceSliceWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteDeviceClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteDeviceClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteNamespacedResourceClaim + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteNamespacedResourceClaimTemplate + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteResourceSlice + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteResourceSliceWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getAPIResources + * @throws ApiException if the response code was not in [200, 299] + */ + public async getAPIResourcesWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1APIResourceList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1APIResourceList", "" + ) as V1APIResourceList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1APIResourceList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1APIResourceList", "" + ) as V1APIResourceList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listDeviceClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async listDeviceClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1DeviceClassList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClassList", "" + ) as V1DeviceClassList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1DeviceClassList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClassList", "" + ) as V1DeviceClassList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listNamespacedResourceClaim + * @throws ApiException if the response code was not in [200, 299] + */ + public async listNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceClaimList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimList", "" + ) as V1ResourceClaimList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceClaimList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimList", "" + ) as V1ResourceClaimList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listNamespacedResourceClaimTemplate + * @throws ApiException if the response code was not in [200, 299] + */ + public async listNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceClaimTemplateList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplateList", "" + ) as V1ResourceClaimTemplateList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceClaimTemplateList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplateList", "" + ) as V1ResourceClaimTemplateList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listResourceClaimForAllNamespaces + * @throws ApiException if the response code was not in [200, 299] + */ + public async listResourceClaimForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceClaimList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimList", "" + ) as V1ResourceClaimList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceClaimList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimList", "" + ) as V1ResourceClaimList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listResourceClaimTemplateForAllNamespaces + * @throws ApiException if the response code was not in [200, 299] + */ + public async listResourceClaimTemplateForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceClaimTemplateList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplateList", "" + ) as V1ResourceClaimTemplateList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceClaimTemplateList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplateList", "" + ) as V1ResourceClaimTemplateList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listResourceSlice + * @throws ApiException if the response code was not in [200, 299] + */ + public async listResourceSliceWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceSliceList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSliceList", "" + ) as V1ResourceSliceList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceSliceList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSliceList", "" + ) as V1ResourceSliceList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to patchDeviceClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async patchDeviceClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to patchNamespacedResourceClaim + * @throws ApiException if the response code was not in [200, 299] + */ + public async patchNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to patchNamespacedResourceClaimStatus + * @throws ApiException if the response code was not in [200, 299] + */ + public async patchNamespacedResourceClaimStatusWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to patchNamespacedResourceClaimTemplate + * @throws ApiException if the response code was not in [200, 299] + */ + public async patchNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to patchResourceSlice + * @throws ApiException if the response code was not in [200, 299] + */ + public async patchResourceSliceWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to readDeviceClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async readDeviceClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to readNamespacedResourceClaim + * @throws ApiException if the response code was not in [200, 299] + */ + public async readNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to readNamespacedResourceClaimStatus + * @throws ApiException if the response code was not in [200, 299] + */ + public async readNamespacedResourceClaimStatusWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to readNamespacedResourceClaimTemplate + * @throws ApiException if the response code was not in [200, 299] + */ + public async readNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to readResourceSlice + * @throws ApiException if the response code was not in [200, 299] + */ + public async readResourceSliceWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to replaceDeviceClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async replaceDeviceClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1DeviceClass", "" + ) as V1DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to replaceNamespacedResourceClaim + * @throws ApiException if the response code was not in [200, 299] + */ + public async replaceNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to replaceNamespacedResourceClaimStatus + * @throws ApiException if the response code was not in [200, 299] + */ + public async replaceNamespacedResourceClaimStatusWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: ResourceV1ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ResourceV1ResourceClaim", "" + ) as ResourceV1ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to replaceNamespacedResourceClaimTemplate + * @throws ApiException if the response code was not in [200, 299] + */ + public async replaceNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceClaimTemplate", "" + ) as V1ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to replaceResourceSlice + * @throws ApiException if the response code was not in [200, 299] + */ + public async replaceResourceSliceWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1ResourceSlice", "" + ) as V1ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + +} diff --git a/src/gen/apis/ResourceV1alpha3Api.ts b/src/gen/apis/ResourceV1alpha3Api.ts index 176daf989a..23273d4715 100644 --- a/src/gen/apis/ResourceV1alpha3Api.ts +++ b/src/gen/apis/ResourceV1alpha3Api.ts @@ -13,14 +13,8 @@ import {SecurityAuthentication} from '../auth/auth.js'; import { V1APIResourceList } from '../models/V1APIResourceList.js'; import { V1DeleteOptions } from '../models/V1DeleteOptions.js'; import { V1Status } from '../models/V1Status.js'; -import { V1alpha3DeviceClass } from '../models/V1alpha3DeviceClass.js'; -import { V1alpha3DeviceClassList } from '../models/V1alpha3DeviceClassList.js'; -import { V1alpha3ResourceClaim } from '../models/V1alpha3ResourceClaim.js'; -import { V1alpha3ResourceClaimList } from '../models/V1alpha3ResourceClaimList.js'; -import { V1alpha3ResourceClaimTemplate } from '../models/V1alpha3ResourceClaimTemplate.js'; -import { V1alpha3ResourceClaimTemplateList } from '../models/V1alpha3ResourceClaimTemplateList.js'; -import { V1alpha3ResourceSlice } from '../models/V1alpha3ResourceSlice.js'; -import { V1alpha3ResourceSliceList } from '../models/V1alpha3ResourceSliceList.js'; +import { V1alpha3DeviceTaintRule } from '../models/V1alpha3DeviceTaintRule.js'; +import { V1alpha3DeviceTaintRuleList } from '../models/V1alpha3DeviceTaintRuleList.js'; /** * no description @@ -28,19 +22,19 @@ import { V1alpha3ResourceSliceList } from '../models/V1alpha3ResourceSliceList.j export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { /** - * create a DeviceClass + * create a DeviceTaintRule * @param body * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. */ - public async createDeviceClass(body: V1alpha3DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + public async createDeviceTaintRule(body: V1alpha3DeviceTaintRule, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "createDeviceClass", "body"); + throw new RequiredError("ResourceV1alpha3Api", "createDeviceTaintRule", "body"); } @@ -49,7 +43,7 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/deviceclasses'; + const localVarPath = '/apis/resource.k8s.io/v1alpha3/devicetaintrules'; // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); @@ -80,7 +74,7 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { const contentType = ObjectSerializer.getPreferredMediaType([]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1alpha3DeviceClass", ""), + ObjectSerializer.serialize(body, "V1alpha3DeviceTaintRule", ""), contentType ); requestContext.setBody(serializedBody); @@ -92,7 +86,7 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -101,27 +95,35 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { } /** - * create a ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects - * @param body + * delete collection of DeviceTaintRule * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body */ - public async createNamespacedResourceClaim(namespace: string, body: V1alpha3ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + public async deleteCollectionDeviceTaintRule(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { let _config = _options || this.configuration; - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "createNamespacedResourceClaim", "namespace"); - } - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "createNamespacedResourceClaim", "body"); - } + + + + + + + @@ -129,11 +131,10 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims' - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + const localVarPath = '/apis/resource.k8s.io/v1alpha3/devicetaintrules'; // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Query Params @@ -141,19 +142,69 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); } + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + // Query Params if (dryRun !== undefined) { requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); } // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); } // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); } @@ -161,7 +212,7 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { const contentType = ObjectSerializer.getPreferredMediaType([]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1alpha3ResourceClaim", ""), + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), contentType ); requestContext.setBody(serializedBody); @@ -173,7 +224,7 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -182,27 +233,26 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { } /** - * create a ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects - * @param body + * delete a DeviceTaintRule + * @param name name of the DeviceTaintRule * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param body */ - public async createNamespacedResourceClaimTemplate(namespace: string, body: V1alpha3ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + public async deleteDeviceTaintRule(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { let _config = _options || this.configuration; - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "createNamespacedResourceClaimTemplate", "namespace"); + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1alpha3Api", "deleteDeviceTaintRule", "name"); } - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "createNamespacedResourceClaimTemplate", "body"); - } + @@ -210,11 +260,11 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates' - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + const localVarPath = '/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Query Params @@ -228,13 +278,23 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { } // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); } // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); } @@ -242,7 +302,7 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { const contentType = ObjectSerializer.getPreferredMediaType([]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1alpha3ResourceClaimTemplate", ""), + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), contentType ); requestContext.setBody(serializedBody); @@ -254,7 +314,7 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -263,62 +323,18 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { } /** - * create a ResourceSlice - * @param body - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * get available resources */ - public async createResourceSlice(body: V1alpha3ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + public async getAPIResources(_options?: Configuration): Promise { let _config = _options || this.configuration; - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "createResourceSlice", "body"); - } - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/resourceslices'; + const localVarPath = '/apis/resource.k8s.io/v1alpha3/'; // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1alpha3ResourceSlice", ""), - contentType - ); - requestContext.setBody(serializedBody); let authMethod: SecurityAuthentication | undefined; // Apply auth methods @@ -327,7 +343,7 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -336,24 +352,20 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { } /** - * delete collection of DeviceClass + * list or watch objects of kind DeviceTaintRule * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param body + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public async deleteCollectionDeviceClass(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + public async listDeviceTaintRule(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { let _config = _options || this.configuration; @@ -367,15 +379,11 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/deviceclasses'; + const localVarPath = '/apis/resource.k8s.io/v1alpha3/devicetaintrules'; // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Query Params @@ -384,13 +392,13 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { } // Query Params - if (_continue !== undefined) { - requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); } // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); } // Query Params @@ -398,16 +406,6 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); } - // Query Params - if (gracePeriodSeconds !== undefined) { - requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); - } - - // Query Params - if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { - requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); - } - // Query Params if (labelSelector !== undefined) { requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); @@ -418,16 +416,6 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); } - // Query Params - if (orphanDependents !== undefined) { - requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); - } - - // Query Params - if (propagationPolicy !== undefined) { - requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); - } - // Query Params if (resourceVersion !== undefined) { requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); @@ -448,15 +436,11 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); } + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1DeleteOptions", ""), - contentType - ); - requestContext.setBody(serializedBody); let authMethod: SecurityAuthentication | undefined; // Apply auth methods @@ -465,7 +449,7 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -474,41 +458,28 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { } /** - * delete collection of ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects + * partially update the specified DeviceTaintRule + * @param name name of the DeviceTaintRule + * @param body * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param body + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public async deleteCollectionNamespacedResourceClaim(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + public async patchDeviceTaintRule(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { let _config = _options || this.configuration; - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "deleteCollectionNamespacedResourceClaim", "namespace"); + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1alpha3Api", "patchDeviceTaintRule", "name"); } - - - - - - - - + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1alpha3Api", "patchDeviceTaintRule", "body"); + } @@ -517,11 +488,11 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims' - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + const localVarPath = '/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") // Query Params @@ -529,3593 +500,218 @@ export class ResourceV1alpha3ApiRequestFactory extends BaseAPIRequestFactory { requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); } - // Query Params - if (_continue !== undefined) { - requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); - } - // Query Params if (dryRun !== undefined) { requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); } // Query Params - if (fieldSelector !== undefined) { - requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); - } - - // Query Params - if (gracePeriodSeconds !== undefined) { - requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); - } - - // Query Params - if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { - requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); - } - - // Query Params - if (labelSelector !== undefined) { - requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); - } - - // Query Params - if (limit !== undefined) { - requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); - } - - // Query Params - if (orphanDependents !== undefined) { - requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); - } - - // Query Params - if (propagationPolicy !== undefined) { - requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); - } - - // Query Params - if (resourceVersion !== undefined) { - requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); - } - - // Query Params - if (resourceVersionMatch !== undefined) { - requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); } // Query Params - if (sendInitialEvents !== undefined) { - requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); } // Query Params - if (timeoutSeconds !== undefined) { - requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + if (force !== undefined) { + requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); } // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1DeleteOptions", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json-patch+json", - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * delete collection of ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param body - */ - public async deleteCollectionNamespacedResourceClaimTemplate(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "deleteCollectionNamespacedResourceClaimTemplate", "namespace"); - } - - - - - - - - - - - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates' - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (_continue !== undefined) { - requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldSelector !== undefined) { - requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); - } - - // Query Params - if (gracePeriodSeconds !== undefined) { - requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); - } - - // Query Params - if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { - requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); - } - - // Query Params - if (labelSelector !== undefined) { - requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); - } - - // Query Params - if (limit !== undefined) { - requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); - } - - // Query Params - if (orphanDependents !== undefined) { - requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); - } - - // Query Params - if (propagationPolicy !== undefined) { - requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); - } - - // Query Params - if (resourceVersion !== undefined) { - requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); - } - - // Query Params - if (resourceVersionMatch !== undefined) { - requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); - } - - // Query Params - if (sendInitialEvents !== undefined) { - requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); - } - - // Query Params - if (timeoutSeconds !== undefined) { - requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); + "application/merge-patch+json", + + "application/strategic-merge-patch+json", + + "application/apply-patch+yaml", + + "application/apply-patch+cbor" + ]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + ObjectSerializer.serialize(body, "any", ""), contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * delete collection of ResourceSlice - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param body - */ - public async deleteCollectionResourceSlice(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - - - - - - - - - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/resourceslices'; - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (_continue !== undefined) { - requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldSelector !== undefined) { - requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); - } - - // Query Params - if (gracePeriodSeconds !== undefined) { - requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); - } - - // Query Params - if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { - requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); - } - - // Query Params - if (labelSelector !== undefined) { - requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); - } - - // Query Params - if (limit !== undefined) { - requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); - } - - // Query Params - if (orphanDependents !== undefined) { - requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); - } - - // Query Params - if (propagationPolicy !== undefined) { - requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); - } - - // Query Params - if (resourceVersion !== undefined) { - requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); - } - - // Query Params - if (resourceVersionMatch !== undefined) { - requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); - } - - // Query Params - if (sendInitialEvents !== undefined) { - requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); - } - - // Query Params - if (timeoutSeconds !== undefined) { - requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1DeleteOptions", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * delete a DeviceClass - * @param name name of the DeviceClass - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it - * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. - * @param body - */ - public async deleteDeviceClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "deleteDeviceClass", "name"); - } - - - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/deviceclasses/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (gracePeriodSeconds !== undefined) { - requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); - } - - // Query Params - if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { - requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); - } - - // Query Params - if (orphanDependents !== undefined) { - requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); - } - - // Query Params - if (propagationPolicy !== undefined) { - requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1DeleteOptions", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * delete a ResourceClaim - * @param name name of the ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it - * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. - * @param body - */ - public async deleteNamespacedResourceClaim(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "deleteNamespacedResourceClaim", "name"); - } - - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "deleteNamespacedResourceClaim", "namespace"); - } - - - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (gracePeriodSeconds !== undefined) { - requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); - } - - // Query Params - if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { - requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); - } - - // Query Params - if (orphanDependents !== undefined) { - requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); - } - - // Query Params - if (propagationPolicy !== undefined) { - requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1DeleteOptions", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * delete a ResourceClaimTemplate - * @param name name of the ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it - * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. - * @param body - */ - public async deleteNamespacedResourceClaimTemplate(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "deleteNamespacedResourceClaimTemplate", "name"); - } - - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "deleteNamespacedResourceClaimTemplate", "namespace"); - } - - - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (gracePeriodSeconds !== undefined) { - requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); - } - - // Query Params - if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { - requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); - } - - // Query Params - if (orphanDependents !== undefined) { - requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); - } - - // Query Params - if (propagationPolicy !== undefined) { - requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1DeleteOptions", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * delete a ResourceSlice - * @param name name of the ResourceSlice - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it - * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. - * @param body - */ - public async deleteResourceSlice(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "deleteResourceSlice", "name"); - } - - - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/resourceslices/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (gracePeriodSeconds !== undefined) { - requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); - } - - // Query Params - if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { - requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); - } - - // Query Params - if (orphanDependents !== undefined) { - requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); - } - - // Query Params - if (propagationPolicy !== undefined) { - requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1DeleteOptions", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * get available resources - */ - public async getAPIResources(_options?: Configuration): Promise { - let _config = _options || this.configuration; - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/'; - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * list or watch objects of kind DeviceClass - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - */ - public async listDeviceClass(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - - - - - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/deviceclasses'; - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (allowWatchBookmarks !== undefined) { - requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); - } - - // Query Params - if (_continue !== undefined) { - requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); - } - - // Query Params - if (fieldSelector !== undefined) { - requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); - } - - // Query Params - if (labelSelector !== undefined) { - requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); - } - - // Query Params - if (limit !== undefined) { - requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); - } - - // Query Params - if (resourceVersion !== undefined) { - requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); - } - - // Query Params - if (resourceVersionMatch !== undefined) { - requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); - } - - // Query Params - if (sendInitialEvents !== undefined) { - requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); - } - - // Query Params - if (timeoutSeconds !== undefined) { - requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); - } - - // Query Params - if (watch !== undefined) { - requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); - } - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * list or watch objects of kind ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - */ - public async listNamespacedResourceClaim(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "listNamespacedResourceClaim", "namespace"); - } - - - - - - - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims' - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (allowWatchBookmarks !== undefined) { - requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); - } - - // Query Params - if (_continue !== undefined) { - requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); - } - - // Query Params - if (fieldSelector !== undefined) { - requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); - } - - // Query Params - if (labelSelector !== undefined) { - requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); - } - - // Query Params - if (limit !== undefined) { - requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); - } - - // Query Params - if (resourceVersion !== undefined) { - requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); - } - - // Query Params - if (resourceVersionMatch !== undefined) { - requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); - } - - // Query Params - if (sendInitialEvents !== undefined) { - requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); - } - - // Query Params - if (timeoutSeconds !== undefined) { - requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); - } - - // Query Params - if (watch !== undefined) { - requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); - } - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * list or watch objects of kind ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - */ - public async listNamespacedResourceClaimTemplate(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "listNamespacedResourceClaimTemplate", "namespace"); - } - - - - - - - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates' - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (allowWatchBookmarks !== undefined) { - requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); - } - - // Query Params - if (_continue !== undefined) { - requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); - } - - // Query Params - if (fieldSelector !== undefined) { - requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); - } - - // Query Params - if (labelSelector !== undefined) { - requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); - } - - // Query Params - if (limit !== undefined) { - requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); - } - - // Query Params - if (resourceVersion !== undefined) { - requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); - } - - // Query Params - if (resourceVersionMatch !== undefined) { - requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); - } - - // Query Params - if (sendInitialEvents !== undefined) { - requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); - } - - // Query Params - if (timeoutSeconds !== undefined) { - requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); - } - - // Query Params - if (watch !== undefined) { - requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); - } - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * list or watch objects of kind ResourceClaim - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - */ - public async listResourceClaimForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - - - - - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/resourceclaims'; - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (allowWatchBookmarks !== undefined) { - requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); - } - - // Query Params - if (_continue !== undefined) { - requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); - } - - // Query Params - if (fieldSelector !== undefined) { - requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); - } - - // Query Params - if (labelSelector !== undefined) { - requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); - } - - // Query Params - if (limit !== undefined) { - requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); - } - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (resourceVersion !== undefined) { - requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); - } - - // Query Params - if (resourceVersionMatch !== undefined) { - requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); - } - - // Query Params - if (sendInitialEvents !== undefined) { - requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); - } - - // Query Params - if (timeoutSeconds !== undefined) { - requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); - } - - // Query Params - if (watch !== undefined) { - requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); - } - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * list or watch objects of kind ResourceClaimTemplate - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - */ - public async listResourceClaimTemplateForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - - - - - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/resourceclaimtemplates'; - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (allowWatchBookmarks !== undefined) { - requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); - } - - // Query Params - if (_continue !== undefined) { - requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); - } - - // Query Params - if (fieldSelector !== undefined) { - requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); - } - - // Query Params - if (labelSelector !== undefined) { - requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); - } - - // Query Params - if (limit !== undefined) { - requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); - } - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (resourceVersion !== undefined) { - requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); - } - - // Query Params - if (resourceVersionMatch !== undefined) { - requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); - } - - // Query Params - if (sendInitialEvents !== undefined) { - requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); - } - - // Query Params - if (timeoutSeconds !== undefined) { - requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); - } - - // Query Params - if (watch !== undefined) { - requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); - } - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * list or watch objects of kind ResourceSlice - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. - * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. - * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - */ - public async listResourceSlice(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - - - - - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/resourceslices'; - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (allowWatchBookmarks !== undefined) { - requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); - } - - // Query Params - if (_continue !== undefined) { - requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); - } - - // Query Params - if (fieldSelector !== undefined) { - requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); - } - - // Query Params - if (labelSelector !== undefined) { - requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); - } - - // Query Params - if (limit !== undefined) { - requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); - } - - // Query Params - if (resourceVersion !== undefined) { - requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); - } - - // Query Params - if (resourceVersionMatch !== undefined) { - requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); - } - - // Query Params - if (sendInitialEvents !== undefined) { - requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); - } - - // Query Params - if (timeoutSeconds !== undefined) { - requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); - } - - // Query Params - if (watch !== undefined) { - requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); - } - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * partially update the specified DeviceClass - * @param name name of the DeviceClass - * @param body - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. - */ - public async patchDeviceClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchDeviceClass", "name"); - } - - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchDeviceClass", "body"); - } - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/deviceclasses/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - // Query Params - if (force !== undefined) { - requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json-patch+json", - - "application/merge-patch+json", - - "application/strategic-merge-patch+json", - - "application/apply-patch+yaml", - - "application/apply-patch+cbor" - ]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "any", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * partially update the specified ResourceClaim - * @param name name of the ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects - * @param body - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. - */ - public async patchNamespacedResourceClaim(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchNamespacedResourceClaim", "name"); - } - - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchNamespacedResourceClaim", "namespace"); - } - - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchNamespacedResourceClaim", "body"); - } - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - // Query Params - if (force !== undefined) { - requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json-patch+json", - - "application/merge-patch+json", - - "application/strategic-merge-patch+json", - - "application/apply-patch+yaml", - - "application/apply-patch+cbor" - ]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "any", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * partially update status of the specified ResourceClaim - * @param name name of the ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects - * @param body - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. - */ - public async patchNamespacedResourceClaimStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchNamespacedResourceClaimStatus", "name"); - } - - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchNamespacedResourceClaimStatus", "namespace"); - } - - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchNamespacedResourceClaimStatus", "body"); - } - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - // Query Params - if (force !== undefined) { - requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json-patch+json", - - "application/merge-patch+json", - - "application/strategic-merge-patch+json", - - "application/apply-patch+yaml", - - "application/apply-patch+cbor" - ]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "any", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * partially update the specified ResourceClaimTemplate - * @param name name of the ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects - * @param body - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. - */ - public async patchNamespacedResourceClaimTemplate(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchNamespacedResourceClaimTemplate", "name"); - } - - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchNamespacedResourceClaimTemplate", "namespace"); - } - - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchNamespacedResourceClaimTemplate", "body"); - } - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - // Query Params - if (force !== undefined) { - requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json-patch+json", - - "application/merge-patch+json", - - "application/strategic-merge-patch+json", - - "application/apply-patch+yaml", - - "application/apply-patch+cbor" - ]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "any", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * partially update the specified ResourceSlice - * @param name name of the ResourceSlice - * @param body - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. - */ - public async patchResourceSlice(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchResourceSlice", "name"); - } - - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "patchResourceSlice", "body"); - } - - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/resourceslices/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - // Query Params - if (force !== undefined) { - requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json-patch+json", - - "application/merge-patch+json", - - "application/strategic-merge-patch+json", - - "application/apply-patch+yaml", - - "application/apply-patch+cbor" - ]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "any", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * read the specified DeviceClass - * @param name name of the DeviceClass - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - */ - public async readDeviceClass(name: string, pretty?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "readDeviceClass", "name"); - } - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/deviceclasses/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * read the specified ResourceClaim - * @param name name of the ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - */ - public async readNamespacedResourceClaim(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "readNamespacedResourceClaim", "name"); - } - - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "readNamespacedResourceClaim", "namespace"); - } - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * read status of the specified ResourceClaim - * @param name name of the ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - */ - public async readNamespacedResourceClaimStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "readNamespacedResourceClaimStatus", "name"); - } - - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "readNamespacedResourceClaimStatus", "namespace"); - } - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * read the specified ResourceClaimTemplate - * @param name name of the ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - */ - public async readNamespacedResourceClaimTemplate(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "readNamespacedResourceClaimTemplate", "name"); - } - - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "readNamespacedResourceClaimTemplate", "namespace"); - } - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * read the specified ResourceSlice - * @param name name of the ResourceSlice - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - */ - public async readResourceSlice(name: string, pretty?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "readResourceSlice", "name"); - } - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/resourceslices/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * replace the specified DeviceClass - * @param name name of the DeviceClass - * @param body - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - */ - public async replaceDeviceClass(name: string, body: V1alpha3DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceDeviceClass", "name"); - } - - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceDeviceClass", "body"); - } - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/deviceclasses/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1alpha3DeviceClass", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * replace the specified ResourceClaim - * @param name name of the ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects - * @param body - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - */ - public async replaceNamespacedResourceClaim(name: string, namespace: string, body: V1alpha3ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceNamespacedResourceClaim", "name"); - } - - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceNamespacedResourceClaim", "namespace"); - } - - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceNamespacedResourceClaim", "body"); - } - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1alpha3ResourceClaim", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * replace status of the specified ResourceClaim - * @param name name of the ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects - * @param body - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - */ - public async replaceNamespacedResourceClaimStatus(name: string, namespace: string, body: V1alpha3ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceNamespacedResourceClaimStatus", "name"); - } - - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceNamespacedResourceClaimStatus", "namespace"); - } - - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceNamespacedResourceClaimStatus", "body"); - } - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1alpha3ResourceClaim", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * replace the specified ResourceClaimTemplate - * @param name name of the ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects - * @param body - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - */ - public async replaceNamespacedResourceClaimTemplate(name: string, namespace: string, body: V1alpha3ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceNamespacedResourceClaimTemplate", "name"); - } - - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceNamespacedResourceClaimTemplate", "namespace"); - } - - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceNamespacedResourceClaimTemplate", "body"); - } - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1alpha3ResourceClaimTemplate", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * replace the specified ResourceSlice - * @param name name of the ResourceSlice - * @param body - * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - */ - public async replaceResourceSlice(name: string, body: V1alpha3ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'name' is not null or undefined - if (name === null || name === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceResourceSlice", "name"); - } - - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("ResourceV1alpha3Api", "replaceResourceSlice", "body"); - } - - - - - - - // Path Params - const localVarPath = '/apis/resource.k8s.io/v1alpha3/resourceslices/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - - // Query Params - if (dryRun !== undefined) { - requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); - } - - // Query Params - if (fieldManager !== undefined) { - requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); - } - - // Query Params - if (fieldValidation !== undefined) { - requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); - } - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1alpha3ResourceSlice", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["BearerToken"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - -} - -export class ResourceV1alpha3ApiResponseProcessor { - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to createDeviceClass - * @throws ApiException if the response code was not in [200, 299] - */ - public async createDeviceClassWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("202", response.httpStatusCode)) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to createNamespacedResourceClaim - * @throws ApiException if the response code was not in [200, 299] - */ - public async createNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("202", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to createNamespacedResourceClaimTemplate - * @throws ApiException if the response code was not in [200, 299] - */ - public async createNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("202", response.httpStatusCode)) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to createResourceSlice - * @throws ApiException if the response code was not in [200, 299] - */ - public async createResourceSliceWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("202", response.httpStatusCode)) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to deleteCollectionDeviceClass - * @throws ApiException if the response code was not in [200, 299] - */ - public async deleteCollectionDeviceClassWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1Status = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1Status", "" - ) as V1Status; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1Status = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1Status", "" - ) as V1Status; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to deleteCollectionNamespacedResourceClaim - * @throws ApiException if the response code was not in [200, 299] - */ - public async deleteCollectionNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1Status = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1Status", "" - ) as V1Status; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1Status = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1Status", "" - ) as V1Status; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to deleteCollectionNamespacedResourceClaimTemplate - * @throws ApiException if the response code was not in [200, 299] - */ - public async deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1Status = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1Status", "" - ) as V1Status; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1Status = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1Status", "" - ) as V1Status; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to deleteCollectionResourceSlice - * @throws ApiException if the response code was not in [200, 299] - */ - public async deleteCollectionResourceSliceWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1Status = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1Status", "" - ) as V1Status; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1Status = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1Status", "" - ) as V1Status; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to deleteDeviceClass - * @throws ApiException if the response code was not in [200, 299] - */ - public async deleteDeviceClassWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("202", response.httpStatusCode)) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to deleteNamespacedResourceClaim - * @throws ApiException if the response code was not in [200, 299] - */ - public async deleteNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("202", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to deleteNamespacedResourceClaimTemplate - * @throws ApiException if the response code was not in [200, 299] - */ - public async deleteNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("202", response.httpStatusCode)) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to deleteResourceSlice - * @throws ApiException if the response code was not in [200, 299] - */ - public async deleteResourceSliceWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("202", response.httpStatusCode)) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to getAPIResources - * @throws ApiException if the response code was not in [200, 299] - */ - public async getAPIResourcesWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1APIResourceList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1APIResourceList", "" - ) as V1APIResourceList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1APIResourceList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1APIResourceList", "" - ) as V1APIResourceList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to listDeviceClass - * @throws ApiException if the response code was not in [200, 299] - */ - public async listDeviceClassWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3DeviceClassList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClassList", "" - ) as V1alpha3DeviceClassList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3DeviceClassList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClassList", "" - ) as V1alpha3DeviceClassList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to listNamespacedResourceClaim - * @throws ApiException if the response code was not in [200, 299] - */ - public async listNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaimList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimList", "" - ) as V1alpha3ResourceClaimList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaimList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimList", "" - ) as V1alpha3ResourceClaimList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to listNamespacedResourceClaimTemplate - * @throws ApiException if the response code was not in [200, 299] - */ - public async listNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaimTemplateList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplateList", "" - ) as V1alpha3ResourceClaimTemplateList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaimTemplateList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplateList", "" - ) as V1alpha3ResourceClaimTemplateList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to listResourceClaimForAllNamespaces - * @throws ApiException if the response code was not in [200, 299] - */ - public async listResourceClaimForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaimList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimList", "" - ) as V1alpha3ResourceClaimList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaimList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimList", "" - ) as V1alpha3ResourceClaimList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to listResourceClaimTemplateForAllNamespaces - * @throws ApiException if the response code was not in [200, 299] - */ - public async listResourceClaimTemplateForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaimTemplateList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplateList", "" - ) as V1alpha3ResourceClaimTemplateList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaimTemplateList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplateList", "" - ) as V1alpha3ResourceClaimTemplateList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to listResourceSlice - * @throws ApiException if the response code was not in [200, 299] - */ - public async listResourceSliceWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceSliceList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSliceList", "" - ) as V1alpha3ResourceSliceList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceSliceList = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSliceList", "" - ) as V1alpha3ResourceSliceList; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to patchDeviceClass - * @throws ApiException if the response code was not in [200, 299] - */ - public async patchDeviceClassWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } + ); + requestContext.setBody(serializedBody); - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); } - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + return requestContext; } /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to patchNamespacedResourceClaim - * @throws ApiException if the response code was not in [200, 299] + * read the specified DeviceTaintRule + * @param name name of the DeviceTaintRule + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public async patchNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } + public async readDeviceTaintRule(name: string, pretty?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1alpha3Api", "readDeviceTaintRule", "name"); } - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to patchNamespacedResourceClaimStatus - * @throws ApiException if the response code was not in [200, 299] - */ - public async patchNamespacedResourceClaimStatusWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); } - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); } - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + return requestContext; } /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to patchNamespacedResourceClaimTemplate - * @throws ApiException if the response code was not in [200, 299] + * replace the specified DeviceTaintRule + * @param name name of the DeviceTaintRule + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. */ - public async patchNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + public async replaceDeviceTaintRule(name: string, body: V1alpha3DeviceTaintRule, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1alpha3Api", "replaceDeviceTaintRule", "name"); } - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1alpha3Api", "replaceDeviceTaintRule", "body"); } - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to patchResourceSlice - * @throws ApiException if the response code was not in [200, 299] - */ - public async patchResourceSliceWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); } - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); } - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to readDeviceClass - * @throws ApiException if the response code was not in [200, 299] - */ - public async readDeviceClassWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1alpha3DeviceTaintRule", ""), + contentType + ); + requestContext.setBody(serializedBody); - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); } - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + return requestContext; } +} + +export class ResourceV1alpha3ApiResponseProcessor { + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to readNamespacedResourceClaim + * @params response Response returned by the server for a request to createDeviceTaintRule * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { + public async createDeviceTaintRuleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( + const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; + "V1alpha3DeviceTaintRule", "" + ) as V1alpha3DeviceTaintRule; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } - if (isCodeInRange("401", response.httpStatusCode)) { - throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; + "V1alpha3DeviceTaintRule", "" + ) as V1alpha3DeviceTaintRule; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to readNamespacedResourceClaimStatus - * @throws ApiException if the response code was not in [200, 299] - */ - public async readNamespacedResourceClaimStatusWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; + "V1alpha3DeviceTaintRule", "" + ) as V1alpha3DeviceTaintRule; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -4124,10 +720,10 @@ export class ResourceV1alpha3ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( + const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; + "V1alpha3DeviceTaintRule", "" + ) as V1alpha3DeviceTaintRule; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -4138,16 +734,16 @@ export class ResourceV1alpha3ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to readNamespacedResourceClaimTemplate + * @params response Response returned by the server for a request to deleteCollectionDeviceTaintRule * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { + public async deleteCollectionDeviceTaintRuleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( + const body: V1Status = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; + "V1Status", "" + ) as V1Status; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -4156,10 +752,10 @@ export class ResourceV1alpha3ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( + const body: V1Status = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; + "V1Status", "" + ) as V1Status; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -4170,16 +766,23 @@ export class ResourceV1alpha3ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to readResourceSlice + * @params response Response returned by the server for a request to deleteDeviceTaintRule * @throws ApiException if the response code was not in [200, 299] */ - public async readResourceSliceWithHttpInfo(response: ResponseContext): Promise> { + public async deleteDeviceTaintRuleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( + const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; + "V1alpha3DeviceTaintRule", "" + ) as V1alpha3DeviceTaintRule; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1alpha3DeviceTaintRule", "" + ) as V1alpha3DeviceTaintRule; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -4188,10 +791,10 @@ export class ResourceV1alpha3ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( + const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; + "V1alpha3DeviceTaintRule", "" + ) as V1alpha3DeviceTaintRule; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -4202,23 +805,16 @@ export class ResourceV1alpha3ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to replaceDeviceClass + * @params response Response returned by the server for a request to getAPIResources * @throws ApiException if the response code was not in [200, 299] */ - public async replaceDeviceClassWithHttpInfo(response: ResponseContext): Promise> { + public async getAPIResourcesWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( + const body: V1APIResourceList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; + "V1APIResourceList", "" + ) as V1APIResourceList; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -4227,10 +823,10 @@ export class ResourceV1alpha3ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3DeviceClass = ObjectSerializer.deserialize( + const body: V1APIResourceList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3DeviceClass", "" - ) as V1alpha3DeviceClass; + "V1APIResourceList", "" + ) as V1APIResourceList; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -4241,23 +837,16 @@ export class ResourceV1alpha3ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to replaceNamespacedResourceClaim + * @params response Response returned by the server for a request to listDeviceTaintRule * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { + public async listDeviceTaintRuleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( + const body: V1alpha3DeviceTaintRuleList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; + "V1alpha3DeviceTaintRuleList", "" + ) as V1alpha3DeviceTaintRuleList; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -4266,10 +855,10 @@ export class ResourceV1alpha3ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( + const body: V1alpha3DeviceTaintRuleList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; + "V1alpha3DeviceTaintRuleList", "" + ) as V1alpha3DeviceTaintRuleList; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -4280,23 +869,23 @@ export class ResourceV1alpha3ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to replaceNamespacedResourceClaimStatus + * @params response Response returned by the server for a request to patchDeviceTaintRule * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedResourceClaimStatusWithHttpInfo(response: ResponseContext): Promise> { + public async patchDeviceTaintRuleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( + const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; + "V1alpha3DeviceTaintRule", "" + ) as V1alpha3DeviceTaintRule; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( + const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; + "V1alpha3DeviceTaintRule", "" + ) as V1alpha3DeviceTaintRule; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -4305,10 +894,10 @@ export class ResourceV1alpha3ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaim = ObjectSerializer.deserialize( + const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaim", "" - ) as V1alpha3ResourceClaim; + "V1alpha3DeviceTaintRule", "" + ) as V1alpha3DeviceTaintRule; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -4319,23 +908,16 @@ export class ResourceV1alpha3ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to replaceNamespacedResourceClaimTemplate + * @params response Response returned by the server for a request to readDeviceTaintRule * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { + public async readDeviceTaintRuleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( + const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; + "V1alpha3DeviceTaintRule", "" + ) as V1alpha3DeviceTaintRule; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -4344,10 +926,10 @@ export class ResourceV1alpha3ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceClaimTemplate = ObjectSerializer.deserialize( + const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceClaimTemplate", "" - ) as V1alpha3ResourceClaimTemplate; + "V1alpha3DeviceTaintRule", "" + ) as V1alpha3DeviceTaintRule; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } @@ -4358,23 +940,23 @@ export class ResourceV1alpha3ApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to replaceResourceSlice + * @params response Response returned by the server for a request to replaceDeviceTaintRule * @throws ApiException if the response code was not in [200, 299] */ - public async replaceResourceSliceWithHttpInfo(response: ResponseContext): Promise> { + public async replaceDeviceTaintRuleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( + const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; + "V1alpha3DeviceTaintRule", "" + ) as V1alpha3DeviceTaintRule; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( + const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; + "V1alpha3DeviceTaintRule", "" + ) as V1alpha3DeviceTaintRule; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { @@ -4383,10 +965,10 @@ export class ResourceV1alpha3ApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: V1alpha3ResourceSlice = ObjectSerializer.deserialize( + const body: V1alpha3DeviceTaintRule = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "V1alpha3ResourceSlice", "" - ) as V1alpha3ResourceSlice; + "V1alpha3DeviceTaintRule", "" + ) as V1alpha3DeviceTaintRule; return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } diff --git a/src/gen/apis/ResourceV1beta1Api.ts b/src/gen/apis/ResourceV1beta1Api.ts index fbf9e1d514..bcf3841187 100644 --- a/src/gen/apis/ResourceV1beta1Api.ts +++ b/src/gen/apis/ResourceV1beta1Api.ts @@ -92,7 +92,7 @@ export class ResourceV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -173,7 +173,7 @@ export class ResourceV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -254,7 +254,7 @@ export class ResourceV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -327,7 +327,7 @@ export class ResourceV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -465,7 +465,7 @@ export class ResourceV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -611,7 +611,7 @@ export class ResourceV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -757,7 +757,7 @@ export class ResourceV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -895,7 +895,7 @@ export class ResourceV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -985,7 +985,7 @@ export class ResourceV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1083,7 +1083,7 @@ export class ResourceV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1181,7 +1181,7 @@ export class ResourceV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1271,7 +1271,7 @@ export class ResourceV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1300,7 +1300,7 @@ export class ResourceV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1406,7 +1406,7 @@ export class ResourceV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1520,7 +1520,7 @@ export class ResourceV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1634,7 +1634,7 @@ export class ResourceV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1740,7 +1740,7 @@ export class ResourceV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1846,7 +1846,7 @@ export class ResourceV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1952,7 +1952,7 @@ export class ResourceV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2050,7 +2050,7 @@ export class ResourceV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2156,7 +2156,7 @@ export class ResourceV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2262,7 +2262,7 @@ export class ResourceV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2368,7 +2368,7 @@ export class ResourceV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2466,7 +2466,7 @@ export class ResourceV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2510,7 +2510,7 @@ export class ResourceV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2562,7 +2562,7 @@ export class ResourceV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2614,7 +2614,7 @@ export class ResourceV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2666,7 +2666,7 @@ export class ResourceV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2710,7 +2710,7 @@ export class ResourceV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2791,7 +2791,7 @@ export class ResourceV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2880,7 +2880,7 @@ export class ResourceV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2969,7 +2969,7 @@ export class ResourceV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -3058,7 +3058,7 @@ export class ResourceV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -3139,7 +3139,7 @@ export class ResourceV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/ResourceV1beta2Api.ts b/src/gen/apis/ResourceV1beta2Api.ts new file mode 100644 index 0000000000..4dc9ecade0 --- /dev/null +++ b/src/gen/apis/ResourceV1beta2Api.ts @@ -0,0 +1,4396 @@ +// TODO: better import syntax? +import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi.js'; +import {Configuration} from '../configuration.js'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http.js'; +import FormData from "form-data"; +import { URLSearchParams } from 'url'; +import {ObjectSerializer} from '../models/ObjectSerializer.js'; +import {ApiException} from './exception.js'; +import {canConsumeForm, isCodeInRange} from '../util.js'; +import {SecurityAuthentication} from '../auth/auth.js'; + + +import { V1APIResourceList } from '../models/V1APIResourceList.js'; +import { V1DeleteOptions } from '../models/V1DeleteOptions.js'; +import { V1Status } from '../models/V1Status.js'; +import { V1beta2DeviceClass } from '../models/V1beta2DeviceClass.js'; +import { V1beta2DeviceClassList } from '../models/V1beta2DeviceClassList.js'; +import { V1beta2ResourceClaim } from '../models/V1beta2ResourceClaim.js'; +import { V1beta2ResourceClaimList } from '../models/V1beta2ResourceClaimList.js'; +import { V1beta2ResourceClaimTemplate } from '../models/V1beta2ResourceClaimTemplate.js'; +import { V1beta2ResourceClaimTemplateList } from '../models/V1beta2ResourceClaimTemplateList.js'; +import { V1beta2ResourceSlice } from '../models/V1beta2ResourceSlice.js'; +import { V1beta2ResourceSliceList } from '../models/V1beta2ResourceSliceList.js'; + +/** + * no description + */ +export class ResourceV1beta2ApiRequestFactory extends BaseAPIRequestFactory { + + /** + * create a DeviceClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async createDeviceClass(body: V1beta2DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1beta2Api", "createDeviceClass", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1beta2/deviceclasses'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1beta2DeviceClass", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * create a ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async createNamespacedResourceClaim(namespace: string, body: V1beta2ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1beta2Api", "createNamespacedResourceClaim", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1beta2Api", "createNamespacedResourceClaim", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims' + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1beta2ResourceClaim", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * create a ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async createNamespacedResourceClaimTemplate(namespace: string, body: V1beta2ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1beta2Api", "createNamespacedResourceClaimTemplate", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1beta2Api", "createNamespacedResourceClaimTemplate", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates' + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1beta2ResourceClaimTemplate", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * create a ResourceSlice + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async createResourceSlice(body: V1beta2ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1beta2Api", "createResourceSlice", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1beta2/resourceslices'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1beta2ResourceSlice", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * delete collection of DeviceClass + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public async deleteCollectionDeviceClass(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + + + + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1beta2/deviceclasses'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * delete collection of ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public async deleteCollectionNamespacedResourceClaim(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1beta2Api", "deleteCollectionNamespacedResourceClaim", "namespace"); + } + + + + + + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims' + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * delete collection of ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public async deleteCollectionNamespacedResourceClaimTemplate(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1beta2Api", "deleteCollectionNamespacedResourceClaimTemplate", "namespace"); + } + + + + + + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates' + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * delete collection of ResourceSlice + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public async deleteCollectionResourceSlice(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + + + + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1beta2/resourceslices'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * delete a DeviceClass + * @param name name of the DeviceClass + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param body + */ + public async deleteDeviceClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1beta2Api", "deleteDeviceClass", "name"); + } + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1beta2/deviceclasses/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * delete a ResourceClaim + * @param name name of the ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param body + */ + public async deleteNamespacedResourceClaim(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1beta2Api", "deleteNamespacedResourceClaim", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1beta2Api", "deleteNamespacedResourceClaim", "namespace"); + } + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * delete a ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param body + */ + public async deleteNamespacedResourceClaimTemplate(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1beta2Api", "deleteNamespacedResourceClaimTemplate", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1beta2Api", "deleteNamespacedResourceClaimTemplate", "namespace"); + } + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * delete a ResourceSlice + * @param name name of the ResourceSlice + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param body + */ + public async deleteResourceSlice(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1beta2Api", "deleteResourceSlice", "name"); + } + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1beta2/resourceslices/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * get available resources + */ + public async getAPIResources(_options?: Configuration): Promise { + let _config = _options || this.configuration; + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1beta2/'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * list or watch objects of kind DeviceClass + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public async listDeviceClass(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1beta2/deviceclasses'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * list or watch objects of kind ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public async listNamespacedResourceClaim(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1beta2Api", "listNamespacedResourceClaim", "namespace"); + } + + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims' + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * list or watch objects of kind ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public async listNamespacedResourceClaimTemplate(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1beta2Api", "listNamespacedResourceClaimTemplate", "namespace"); + } + + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates' + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * list or watch objects of kind ResourceClaim + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public async listResourceClaimForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1beta2/resourceclaims'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * list or watch objects of kind ResourceClaimTemplate + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public async listResourceClaimTemplateForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1beta2/resourceclaimtemplates'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * list or watch objects of kind ResourceSlice + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public async listResourceSlice(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1beta2/resourceslices'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * partially update the specified DeviceClass + * @param name name of the DeviceClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + */ + public async patchDeviceClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1beta2Api", "patchDeviceClass", "name"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1beta2Api", "patchDeviceClass", "body"); + } + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1beta2/deviceclasses/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + // Query Params + if (force !== undefined) { + requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json-patch+json", + + "application/merge-patch+json", + + "application/strategic-merge-patch+json", + + "application/apply-patch+yaml", + + "application/apply-patch+cbor" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "any", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * partially update the specified ResourceClaim + * @param name name of the ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + */ + public async patchNamespacedResourceClaim(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1beta2Api", "patchNamespacedResourceClaim", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1beta2Api", "patchNamespacedResourceClaim", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1beta2Api", "patchNamespacedResourceClaim", "body"); + } + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + // Query Params + if (force !== undefined) { + requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json-patch+json", + + "application/merge-patch+json", + + "application/strategic-merge-patch+json", + + "application/apply-patch+yaml", + + "application/apply-patch+cbor" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "any", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * partially update status of the specified ResourceClaim + * @param name name of the ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + */ + public async patchNamespacedResourceClaimStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1beta2Api", "patchNamespacedResourceClaimStatus", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1beta2Api", "patchNamespacedResourceClaimStatus", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1beta2Api", "patchNamespacedResourceClaimStatus", "body"); + } + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + // Query Params + if (force !== undefined) { + requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json-patch+json", + + "application/merge-patch+json", + + "application/strategic-merge-patch+json", + + "application/apply-patch+yaml", + + "application/apply-patch+cbor" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "any", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * partially update the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + */ + public async patchNamespacedResourceClaimTemplate(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1beta2Api", "patchNamespacedResourceClaimTemplate", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1beta2Api", "patchNamespacedResourceClaimTemplate", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1beta2Api", "patchNamespacedResourceClaimTemplate", "body"); + } + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + // Query Params + if (force !== undefined) { + requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json-patch+json", + + "application/merge-patch+json", + + "application/strategic-merge-patch+json", + + "application/apply-patch+yaml", + + "application/apply-patch+cbor" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "any", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * partially update the specified ResourceSlice + * @param name name of the ResourceSlice + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + */ + public async patchResourceSlice(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1beta2Api", "patchResourceSlice", "name"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1beta2Api", "patchResourceSlice", "body"); + } + + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1beta2/resourceslices/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + // Query Params + if (force !== undefined) { + requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json-patch+json", + + "application/merge-patch+json", + + "application/strategic-merge-patch+json", + + "application/apply-patch+yaml", + + "application/apply-patch+cbor" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "any", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * read the specified DeviceClass + * @param name name of the DeviceClass + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + */ + public async readDeviceClass(name: string, pretty?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1beta2Api", "readDeviceClass", "name"); + } + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1beta2/deviceclasses/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * read the specified ResourceClaim + * @param name name of the ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + */ + public async readNamespacedResourceClaim(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1beta2Api", "readNamespacedResourceClaim", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1beta2Api", "readNamespacedResourceClaim", "namespace"); + } + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * read status of the specified ResourceClaim + * @param name name of the ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + */ + public async readNamespacedResourceClaimStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1beta2Api", "readNamespacedResourceClaimStatus", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1beta2Api", "readNamespacedResourceClaimStatus", "namespace"); + } + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * read the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + */ + public async readNamespacedResourceClaimTemplate(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1beta2Api", "readNamespacedResourceClaimTemplate", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1beta2Api", "readNamespacedResourceClaimTemplate", "namespace"); + } + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * read the specified ResourceSlice + * @param name name of the ResourceSlice + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + */ + public async readResourceSlice(name: string, pretty?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1beta2Api", "readResourceSlice", "name"); + } + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1beta2/resourceslices/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * replace the specified DeviceClass + * @param name name of the DeviceClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async replaceDeviceClass(name: string, body: V1beta2DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1beta2Api", "replaceDeviceClass", "name"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1beta2Api", "replaceDeviceClass", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1beta2/deviceclasses/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1beta2DeviceClass", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * replace the specified ResourceClaim + * @param name name of the ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async replaceNamespacedResourceClaim(name: string, namespace: string, body: V1beta2ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1beta2Api", "replaceNamespacedResourceClaim", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1beta2Api", "replaceNamespacedResourceClaim", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1beta2Api", "replaceNamespacedResourceClaim", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1beta2ResourceClaim", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * replace status of the specified ResourceClaim + * @param name name of the ResourceClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async replaceNamespacedResourceClaimStatus(name: string, namespace: string, body: V1beta2ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1beta2Api", "replaceNamespacedResourceClaimStatus", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1beta2Api", "replaceNamespacedResourceClaimStatus", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1beta2Api", "replaceNamespacedResourceClaimStatus", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1beta2ResourceClaim", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * replace the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async replaceNamespacedResourceClaimTemplate(name: string, namespace: string, body: V1beta2ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1beta2Api", "replaceNamespacedResourceClaimTemplate", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("ResourceV1beta2Api", "replaceNamespacedResourceClaimTemplate", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1beta2Api", "replaceNamespacedResourceClaimTemplate", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1beta2ResourceClaimTemplate", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * replace the specified ResourceSlice + * @param name name of the ResourceSlice + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async replaceResourceSlice(name: string, body: V1beta2ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("ResourceV1beta2Api", "replaceResourceSlice", "name"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("ResourceV1beta2Api", "replaceResourceSlice", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/resource.k8s.io/v1beta2/resourceslices/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1beta2ResourceSlice", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + +} + +export class ResourceV1beta2ApiResponseProcessor { + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createDeviceClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async createDeviceClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1beta2DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2DeviceClass", "" + ) as V1beta2DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1beta2DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2DeviceClass", "" + ) as V1beta2DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1beta2DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2DeviceClass", "" + ) as V1beta2DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1beta2DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2DeviceClass", "" + ) as V1beta2DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createNamespacedResourceClaim + * @throws ApiException if the response code was not in [200, 299] + */ + public async createNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1beta2ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaim", "" + ) as V1beta2ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1beta2ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaim", "" + ) as V1beta2ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1beta2ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaim", "" + ) as V1beta2ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1beta2ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaim", "" + ) as V1beta2ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createNamespacedResourceClaimTemplate + * @throws ApiException if the response code was not in [200, 299] + */ + public async createNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1beta2ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaimTemplate", "" + ) as V1beta2ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1beta2ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaimTemplate", "" + ) as V1beta2ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1beta2ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaimTemplate", "" + ) as V1beta2ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1beta2ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaimTemplate", "" + ) as V1beta2ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createResourceSlice + * @throws ApiException if the response code was not in [200, 299] + */ + public async createResourceSliceWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1beta2ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceSlice", "" + ) as V1beta2ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1beta2ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceSlice", "" + ) as V1beta2ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1beta2ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceSlice", "" + ) as V1beta2ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1beta2ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceSlice", "" + ) as V1beta2ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteCollectionDeviceClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteCollectionDeviceClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteCollectionNamespacedResourceClaim + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteCollectionNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteCollectionNamespacedResourceClaimTemplate + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteCollectionResourceSlice + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteCollectionResourceSliceWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteDeviceClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteDeviceClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1beta2DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2DeviceClass", "" + ) as V1beta2DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1beta2DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2DeviceClass", "" + ) as V1beta2DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1beta2DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2DeviceClass", "" + ) as V1beta2DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteNamespacedResourceClaim + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1beta2ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaim", "" + ) as V1beta2ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1beta2ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaim", "" + ) as V1beta2ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1beta2ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaim", "" + ) as V1beta2ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteNamespacedResourceClaimTemplate + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1beta2ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaimTemplate", "" + ) as V1beta2ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1beta2ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaimTemplate", "" + ) as V1beta2ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1beta2ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaimTemplate", "" + ) as V1beta2ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteResourceSlice + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteResourceSliceWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1beta2ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceSlice", "" + ) as V1beta2ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1beta2ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceSlice", "" + ) as V1beta2ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1beta2ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceSlice", "" + ) as V1beta2ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getAPIResources + * @throws ApiException if the response code was not in [200, 299] + */ + public async getAPIResourcesWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1APIResourceList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1APIResourceList", "" + ) as V1APIResourceList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1APIResourceList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1APIResourceList", "" + ) as V1APIResourceList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listDeviceClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async listDeviceClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1beta2DeviceClassList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2DeviceClassList", "" + ) as V1beta2DeviceClassList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1beta2DeviceClassList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2DeviceClassList", "" + ) as V1beta2DeviceClassList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listNamespacedResourceClaim + * @throws ApiException if the response code was not in [200, 299] + */ + public async listNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1beta2ResourceClaimList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaimList", "" + ) as V1beta2ResourceClaimList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1beta2ResourceClaimList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaimList", "" + ) as V1beta2ResourceClaimList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listNamespacedResourceClaimTemplate + * @throws ApiException if the response code was not in [200, 299] + */ + public async listNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1beta2ResourceClaimTemplateList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaimTemplateList", "" + ) as V1beta2ResourceClaimTemplateList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1beta2ResourceClaimTemplateList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaimTemplateList", "" + ) as V1beta2ResourceClaimTemplateList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listResourceClaimForAllNamespaces + * @throws ApiException if the response code was not in [200, 299] + */ + public async listResourceClaimForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1beta2ResourceClaimList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaimList", "" + ) as V1beta2ResourceClaimList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1beta2ResourceClaimList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaimList", "" + ) as V1beta2ResourceClaimList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listResourceClaimTemplateForAllNamespaces + * @throws ApiException if the response code was not in [200, 299] + */ + public async listResourceClaimTemplateForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1beta2ResourceClaimTemplateList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaimTemplateList", "" + ) as V1beta2ResourceClaimTemplateList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1beta2ResourceClaimTemplateList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaimTemplateList", "" + ) as V1beta2ResourceClaimTemplateList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listResourceSlice + * @throws ApiException if the response code was not in [200, 299] + */ + public async listResourceSliceWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1beta2ResourceSliceList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceSliceList", "" + ) as V1beta2ResourceSliceList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1beta2ResourceSliceList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceSliceList", "" + ) as V1beta2ResourceSliceList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to patchDeviceClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async patchDeviceClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1beta2DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2DeviceClass", "" + ) as V1beta2DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1beta2DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2DeviceClass", "" + ) as V1beta2DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1beta2DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2DeviceClass", "" + ) as V1beta2DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to patchNamespacedResourceClaim + * @throws ApiException if the response code was not in [200, 299] + */ + public async patchNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1beta2ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaim", "" + ) as V1beta2ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1beta2ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaim", "" + ) as V1beta2ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1beta2ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaim", "" + ) as V1beta2ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to patchNamespacedResourceClaimStatus + * @throws ApiException if the response code was not in [200, 299] + */ + public async patchNamespacedResourceClaimStatusWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1beta2ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaim", "" + ) as V1beta2ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1beta2ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaim", "" + ) as V1beta2ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1beta2ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaim", "" + ) as V1beta2ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to patchNamespacedResourceClaimTemplate + * @throws ApiException if the response code was not in [200, 299] + */ + public async patchNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1beta2ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaimTemplate", "" + ) as V1beta2ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1beta2ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaimTemplate", "" + ) as V1beta2ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1beta2ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaimTemplate", "" + ) as V1beta2ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to patchResourceSlice + * @throws ApiException if the response code was not in [200, 299] + */ + public async patchResourceSliceWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1beta2ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceSlice", "" + ) as V1beta2ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1beta2ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceSlice", "" + ) as V1beta2ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1beta2ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceSlice", "" + ) as V1beta2ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to readDeviceClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async readDeviceClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1beta2DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2DeviceClass", "" + ) as V1beta2DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1beta2DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2DeviceClass", "" + ) as V1beta2DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to readNamespacedResourceClaim + * @throws ApiException if the response code was not in [200, 299] + */ + public async readNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1beta2ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaim", "" + ) as V1beta2ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1beta2ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaim", "" + ) as V1beta2ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to readNamespacedResourceClaimStatus + * @throws ApiException if the response code was not in [200, 299] + */ + public async readNamespacedResourceClaimStatusWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1beta2ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaim", "" + ) as V1beta2ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1beta2ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaim", "" + ) as V1beta2ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to readNamespacedResourceClaimTemplate + * @throws ApiException if the response code was not in [200, 299] + */ + public async readNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1beta2ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaimTemplate", "" + ) as V1beta2ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1beta2ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaimTemplate", "" + ) as V1beta2ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to readResourceSlice + * @throws ApiException if the response code was not in [200, 299] + */ + public async readResourceSliceWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1beta2ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceSlice", "" + ) as V1beta2ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1beta2ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceSlice", "" + ) as V1beta2ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to replaceDeviceClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async replaceDeviceClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1beta2DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2DeviceClass", "" + ) as V1beta2DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1beta2DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2DeviceClass", "" + ) as V1beta2DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1beta2DeviceClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2DeviceClass", "" + ) as V1beta2DeviceClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to replaceNamespacedResourceClaim + * @throws ApiException if the response code was not in [200, 299] + */ + public async replaceNamespacedResourceClaimWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1beta2ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaim", "" + ) as V1beta2ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1beta2ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaim", "" + ) as V1beta2ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1beta2ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaim", "" + ) as V1beta2ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to replaceNamespacedResourceClaimStatus + * @throws ApiException if the response code was not in [200, 299] + */ + public async replaceNamespacedResourceClaimStatusWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1beta2ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaim", "" + ) as V1beta2ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1beta2ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaim", "" + ) as V1beta2ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1beta2ResourceClaim = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaim", "" + ) as V1beta2ResourceClaim; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to replaceNamespacedResourceClaimTemplate + * @throws ApiException if the response code was not in [200, 299] + */ + public async replaceNamespacedResourceClaimTemplateWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1beta2ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaimTemplate", "" + ) as V1beta2ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1beta2ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaimTemplate", "" + ) as V1beta2ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1beta2ResourceClaimTemplate = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceClaimTemplate", "" + ) as V1beta2ResourceClaimTemplate; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to replaceResourceSlice + * @throws ApiException if the response code was not in [200, 299] + */ + public async replaceResourceSliceWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1beta2ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceSlice", "" + ) as V1beta2ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1beta2ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceSlice", "" + ) as V1beta2ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1beta2ResourceSlice = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1beta2ResourceSlice", "" + ) as V1beta2ResourceSlice; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + +} diff --git a/src/gen/apis/SchedulingApi.ts b/src/gen/apis/SchedulingApi.ts index d94a74d1d8..dd0e617826 100644 --- a/src/gen/apis/SchedulingApi.ts +++ b/src/gen/apis/SchedulingApi.ts @@ -38,7 +38,7 @@ export class SchedulingApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/SchedulingV1Api.ts b/src/gen/apis/SchedulingV1Api.ts index 10b9a85166..40c8b04979 100644 --- a/src/gen/apis/SchedulingV1Api.ts +++ b/src/gen/apis/SchedulingV1Api.ts @@ -86,7 +86,7 @@ export class SchedulingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -224,7 +224,7 @@ export class SchedulingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -314,7 +314,7 @@ export class SchedulingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -343,7 +343,7 @@ export class SchedulingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -449,7 +449,7 @@ export class SchedulingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -547,7 +547,7 @@ export class SchedulingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -591,7 +591,7 @@ export class SchedulingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -672,7 +672,7 @@ export class SchedulingV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/StorageApi.ts b/src/gen/apis/StorageApi.ts index 98a5949f4e..81382164aa 100644 --- a/src/gen/apis/StorageApi.ts +++ b/src/gen/apis/StorageApi.ts @@ -38,7 +38,7 @@ export class StorageApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/StorageV1Api.ts b/src/gen/apis/StorageV1Api.ts index db85f89c28..8fe6cbe9c7 100644 --- a/src/gen/apis/StorageV1Api.ts +++ b/src/gen/apis/StorageV1Api.ts @@ -23,6 +23,8 @@ import { V1StorageClass } from '../models/V1StorageClass.js'; import { V1StorageClassList } from '../models/V1StorageClassList.js'; import { V1VolumeAttachment } from '../models/V1VolumeAttachment.js'; import { V1VolumeAttachmentList } from '../models/V1VolumeAttachmentList.js'; +import { V1VolumeAttributesClass } from '../models/V1VolumeAttributesClass.js'; +import { V1VolumeAttributesClassList } from '../models/V1VolumeAttributesClassList.js'; /** * no description @@ -94,7 +96,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -167,7 +169,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -248,7 +250,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -321,7 +323,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -394,7 +396,80 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * create a VolumeAttributesClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async createVolumeAttributesClass(body: V1VolumeAttributesClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("StorageV1Api", "createVolumeAttributesClass", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/storage.k8s.io/v1/volumeattributesclasses'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1VolumeAttributesClass", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -484,7 +559,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -574,7 +649,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -712,7 +787,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -850,7 +925,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -996,7 +1071,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1134,7 +1209,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1272,7 +1347,145 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * delete collection of VolumeAttributesClass + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public async deleteCollectionVolumeAttributesClass(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + + + + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/storage.k8s.io/v1/volumeattributesclasses'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1370,7 +1583,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1460,7 +1673,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1550,7 +1763,97 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * delete a VolumeAttributesClass + * @param name name of the VolumeAttributesClass + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both. + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. + * @param body + */ + public async deleteVolumeAttributesClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("StorageV1Api", "deleteVolumeAttributesClass", "name"); + } + + + + + + + + + + // Path Params + const localVarPath = '/apis/storage.k8s.io/v1/volumeattributesclasses/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (gracePeriodSeconds !== undefined) { + requestContext.setQueryParam("gracePeriodSeconds", ObjectSerializer.serialize(gracePeriodSeconds, "number", "")); + } + + // Query Params + if (ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { + requestContext.setQueryParam("ignoreStoreReadErrorWithClusterBreakingPotential", ObjectSerializer.serialize(ignoreStoreReadErrorWithClusterBreakingPotential, "boolean", "")); + } + + // Query Params + if (orphanDependents !== undefined) { + requestContext.setQueryParam("orphanDependents", ObjectSerializer.serialize(orphanDependents, "boolean", "")); + } + + // Query Params + if (propagationPolicy !== undefined) { + requestContext.setQueryParam("propagationPolicy", ObjectSerializer.serialize(propagationPolicy, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1DeleteOptions", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1579,7 +1882,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1685,7 +1988,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1791,7 +2094,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1828,12 +2131,131 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/storage.k8s.io/v1/csistoragecapacities'; + const localVarPath = '/apis/storage.k8s.io/v1/csistoragecapacities'; + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (allowWatchBookmarks !== undefined) { + requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); + } + + // Query Params + if (_continue !== undefined) { + requestContext.setQueryParam("continue", ObjectSerializer.serialize(_continue, "string", "")); + } + + // Query Params + if (fieldSelector !== undefined) { + requestContext.setQueryParam("fieldSelector", ObjectSerializer.serialize(fieldSelector, "string", "")); + } + + // Query Params + if (labelSelector !== undefined) { + requestContext.setQueryParam("labelSelector", ObjectSerializer.serialize(labelSelector, "string", "")); + } + + // Query Params + if (limit !== undefined) { + requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); + } + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (resourceVersion !== undefined) { + requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); + } + + // Query Params + if (resourceVersionMatch !== undefined) { + requestContext.setQueryParam("resourceVersionMatch", ObjectSerializer.serialize(resourceVersionMatch, "string", "")); + } + + // Query Params + if (sendInitialEvents !== undefined) { + requestContext.setQueryParam("sendInitialEvents", ObjectSerializer.serialize(sendInitialEvents, "boolean", "")); + } + + // Query Params + if (timeoutSeconds !== undefined) { + requestContext.setQueryParam("timeoutSeconds", ObjectSerializer.serialize(timeoutSeconds, "number", "")); + } + + // Query Params + if (watch !== undefined) { + requestContext.setQueryParam("watch", ObjectSerializer.serialize(watch, "boolean", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * list or watch objects of kind CSIStorageCapacity + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public async listNamespacedCSIStorageCapacity(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("StorageV1Api", "listNamespacedCSIStorageCapacity", "namespace"); + } + + + + + + + + + + + + + + // Path Params + const localVarPath = '/apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities' + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + // Query Params if (allowWatchBookmarks !== undefined) { requestContext.setQueryParam("allowWatchBookmarks", ObjectSerializer.serialize(allowWatchBookmarks, "boolean", "")); @@ -1859,11 +2281,6 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", "")); } - // Query Params - if (pretty !== undefined) { - requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); - } - // Query Params if (resourceVersion !== undefined) { requestContext.setQueryParam("resourceVersion", ObjectSerializer.serialize(resourceVersion, "string", "")); @@ -1897,7 +2314,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -1906,8 +2323,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { } /** - * list or watch objects of kind CSIStorageCapacity - * @param namespace object name and auth scope, such as for teams and projects + * list or watch objects of kind StorageClass * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. @@ -1920,15 +2336,9 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public async listNamespacedCSIStorageCapacity(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + public async listStorageClass(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { let _config = _options || this.configuration; - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("StorageV1Api", "listNamespacedCSIStorageCapacity", "namespace"); - } - - @@ -1941,8 +2351,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities' - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + const localVarPath = '/apis/storage.k8s.io/v1/storageclasses'; // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); @@ -2011,7 +2420,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2020,7 +2429,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { } /** - * list or watch objects of kind StorageClass + * list or watch objects of kind VolumeAttachment * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. @@ -2033,7 +2442,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public async listStorageClass(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + public async listVolumeAttachment(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { let _config = _options || this.configuration; @@ -2048,7 +2457,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/storage.k8s.io/v1/storageclasses'; + const localVarPath = '/apis/storage.k8s.io/v1/volumeattachments'; // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); @@ -2117,7 +2526,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2126,7 +2535,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { } /** - * list or watch objects of kind VolumeAttachment + * list or watch objects of kind VolumeAttributesClass * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. @@ -2139,7 +2548,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public async listVolumeAttachment(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + public async listVolumeAttributesClass(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { let _config = _options || this.configuration; @@ -2154,7 +2563,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/storage.k8s.io/v1/volumeattachments'; + const localVarPath = '/apis/storage.k8s.io/v1/volumeattributesclasses'; // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); @@ -2223,7 +2632,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2321,7 +2730,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2419,7 +2828,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2525,7 +2934,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2623,7 +3032,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2721,7 +3130,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2819,7 +3228,105 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * partially update the specified VolumeAttributesClass + * @param name name of the VolumeAttributesClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + */ + public async patchVolumeAttributesClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("StorageV1Api", "patchVolumeAttributesClass", "name"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("StorageV1Api", "patchVolumeAttributesClass", "body"); + } + + + + + + + + // Path Params + const localVarPath = '/apis/storage.k8s.io/v1/volumeattributesclasses/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PATCH); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + // Query Params + if (force !== undefined) { + requestContext.setQueryParam("force", ObjectSerializer.serialize(force, "boolean", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json-patch+json", + + "application/merge-patch+json", + + "application/strategic-merge-patch+json", + + "application/apply-patch+yaml", + + "application/apply-patch+cbor" + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "any", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2863,7 +3370,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2907,7 +3414,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -2959,7 +3466,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -3003,7 +3510,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -3047,7 +3554,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -3091,7 +3598,51 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * read the specified VolumeAttributesClass + * @param name name of the VolumeAttributesClass + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + */ + public async readVolumeAttributesClass(name: string, pretty?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("StorageV1Api", "readVolumeAttributesClass", "name"); + } + + + + // Path Params + const localVarPath = '/apis/storage.k8s.io/v1/volumeattributesclasses/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -3172,7 +3723,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -3209,8 +3760,97 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/storage.k8s.io/v1/csinodes/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + const localVarPath = '/apis/storage.k8s.io/v1/csinodes/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); + + // Make Request Context + const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); + requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") + + // Query Params + if (pretty !== undefined) { + requestContext.setQueryParam("pretty", ObjectSerializer.serialize(pretty, "string", "")); + } + + // Query Params + if (dryRun !== undefined) { + requestContext.setQueryParam("dryRun", ObjectSerializer.serialize(dryRun, "string", "")); + } + + // Query Params + if (fieldManager !== undefined) { + requestContext.setQueryParam("fieldManager", ObjectSerializer.serialize(fieldManager, "string", "")); + } + + // Query Params + if (fieldValidation !== undefined) { + requestContext.setQueryParam("fieldValidation", ObjectSerializer.serialize(fieldValidation, "string", "")); + } + + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "V1CSINode", ""), + contentType + ); + requestContext.setBody(serializedBody); + + let authMethod: SecurityAuthentication | undefined; + // Apply auth methods + authMethod = _config.authMethods["BearerToken"] + if (authMethod?.applySecurityAuthentication) { + await authMethod?.applySecurityAuthentication(requestContext); + } + + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default + if (defaultAuth?.applySecurityAuthentication) { + await defaultAuth?.applySecurityAuthentication(requestContext); + } + + return requestContext; + } + + /** + * replace the specified CSIStorageCapacity + * @param name name of the CSIStorageCapacity + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + */ + public async replaceNamespacedCSIStorageCapacity(name: string, namespace: string, body: V1CSIStorageCapacity, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + let _config = _options || this.configuration; + + // verify required parameter 'name' is not null or undefined + if (name === null || name === undefined) { + throw new RequiredError("StorageV1Api", "replaceNamespacedCSIStorageCapacity", "name"); + } + + + // verify required parameter 'namespace' is not null or undefined + if (namespace === null || namespace === undefined) { + throw new RequiredError("StorageV1Api", "replaceNamespacedCSIStorageCapacity", "namespace"); + } + + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("StorageV1Api", "replaceNamespacedCSIStorageCapacity", "body"); + } + + + + + + + // Path Params + const localVarPath = '/apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))) + .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); @@ -3241,7 +3881,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { const contentType = ObjectSerializer.getPreferredMediaType([]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1CSINode", ""), + ObjectSerializer.serialize(body, "V1CSIStorageCapacity", ""), contentType ); requestContext.setBody(serializedBody); @@ -3253,7 +3893,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -3262,33 +3902,26 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { } /** - * replace the specified CSIStorageCapacity - * @param name name of the CSIStorageCapacity - * @param namespace object name and auth scope, such as for teams and projects + * replace the specified StorageClass + * @param name name of the StorageClass * @param body * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. */ - public async replaceNamespacedCSIStorageCapacity(name: string, namespace: string, body: V1CSIStorageCapacity, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + public async replaceStorageClass(name: string, body: V1StorageClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("StorageV1Api", "replaceNamespacedCSIStorageCapacity", "name"); - } - - - // verify required parameter 'namespace' is not null or undefined - if (namespace === null || namespace === undefined) { - throw new RequiredError("StorageV1Api", "replaceNamespacedCSIStorageCapacity", "namespace"); + throw new RequiredError("StorageV1Api", "replaceStorageClass", "name"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("StorageV1Api", "replaceNamespacedCSIStorageCapacity", "body"); + throw new RequiredError("StorageV1Api", "replaceStorageClass", "body"); } @@ -3297,9 +3930,8 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name}' - .replace('{' + 'name' + '}', encodeURIComponent(String(name))) - .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace))); + const localVarPath = '/apis/storage.k8s.io/v1/storageclasses/{name}' + .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT); @@ -3330,7 +3962,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { const contentType = ObjectSerializer.getPreferredMediaType([]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1CSIStorageCapacity", ""), + ObjectSerializer.serialize(body, "V1StorageClass", ""), contentType ); requestContext.setBody(serializedBody); @@ -3342,7 +3974,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -3351,26 +3983,26 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { } /** - * replace the specified StorageClass - * @param name name of the StorageClass + * replace the specified VolumeAttachment + * @param name name of the VolumeAttachment * @param body * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. */ - public async replaceStorageClass(name: string, body: V1StorageClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + public async replaceVolumeAttachment(name: string, body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("StorageV1Api", "replaceStorageClass", "name"); + throw new RequiredError("StorageV1Api", "replaceVolumeAttachment", "name"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("StorageV1Api", "replaceStorageClass", "body"); + throw new RequiredError("StorageV1Api", "replaceVolumeAttachment", "body"); } @@ -3379,7 +4011,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/storage.k8s.io/v1/storageclasses/{name}' + const localVarPath = '/apis/storage.k8s.io/v1/volumeattachments/{name}' .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context @@ -3411,7 +4043,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { const contentType = ObjectSerializer.getPreferredMediaType([]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1StorageClass", ""), + ObjectSerializer.serialize(body, "V1VolumeAttachment", ""), contentType ); requestContext.setBody(serializedBody); @@ -3423,7 +4055,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -3432,7 +4064,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { } /** - * replace the specified VolumeAttachment + * replace status of the specified VolumeAttachment * @param name name of the VolumeAttachment * @param body * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). @@ -3440,18 +4072,18 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. */ - public async replaceVolumeAttachment(name: string, body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + public async replaceVolumeAttachmentStatus(name: string, body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("StorageV1Api", "replaceVolumeAttachment", "name"); + throw new RequiredError("StorageV1Api", "replaceVolumeAttachmentStatus", "name"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("StorageV1Api", "replaceVolumeAttachment", "body"); + throw new RequiredError("StorageV1Api", "replaceVolumeAttachmentStatus", "body"); } @@ -3460,7 +4092,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/storage.k8s.io/v1/volumeattachments/{name}' + const localVarPath = '/apis/storage.k8s.io/v1/volumeattachments/{name}/status' .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context @@ -3504,7 +4136,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -3513,26 +4145,26 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { } /** - * replace status of the specified VolumeAttachment - * @param name name of the VolumeAttachment + * replace the specified VolumeAttributesClass + * @param name name of the VolumeAttributesClass * @param body * @param pretty If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. */ - public async replaceVolumeAttachmentStatus(name: string, body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { + public async replaceVolumeAttributesClass(name: string, body: V1VolumeAttributesClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { let _config = _options || this.configuration; // verify required parameter 'name' is not null or undefined if (name === null || name === undefined) { - throw new RequiredError("StorageV1Api", "replaceVolumeAttachmentStatus", "name"); + throw new RequiredError("StorageV1Api", "replaceVolumeAttributesClass", "name"); } // verify required parameter 'body' is not null or undefined if (body === null || body === undefined) { - throw new RequiredError("StorageV1Api", "replaceVolumeAttachmentStatus", "body"); + throw new RequiredError("StorageV1Api", "replaceVolumeAttributesClass", "body"); } @@ -3541,7 +4173,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { // Path Params - const localVarPath = '/apis/storage.k8s.io/v1/volumeattachments/{name}/status' + const localVarPath = '/apis/storage.k8s.io/v1/volumeattributesclasses/{name}' .replace('{' + 'name' + '}', encodeURIComponent(String(name))); // Make Request Context @@ -3573,7 +4205,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { const contentType = ObjectSerializer.getPreferredMediaType([]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "V1VolumeAttachment", ""), + ObjectSerializer.serialize(body, "V1VolumeAttributesClass", ""), contentType ); requestContext.setBody(serializedBody); @@ -3585,7 +4217,7 @@ export class StorageV1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -3827,6 +4459,52 @@ export class StorageV1ApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createVolumeAttributesClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async createVolumeAttributesClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -4065,6 +4743,38 @@ export class StorageV1ApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteCollectionVolumeAttributesClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteCollectionVolumeAttributesClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1Status = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1Status", "" + ) as V1Status; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -4182,6 +4892,45 @@ export class StorageV1ApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteVolumeAttributesClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteVolumeAttributesClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("202", response.httpStatusCode)) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -4406,6 +5155,38 @@ export class StorageV1ApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listVolumeAttributesClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async listVolumeAttributesClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1VolumeAttributesClassList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClassList", "" + ) as V1VolumeAttributesClassList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1VolumeAttributesClassList = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClassList", "" + ) as V1VolumeAttributesClassList; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -4640,6 +5421,45 @@ export class StorageV1ApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to patchVolumeAttributesClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async patchVolumeAttributesClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -4832,6 +5652,38 @@ export class StorageV1ApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to readVolumeAttributesClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async readVolumeAttributesClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -5066,4 +5918,43 @@ export class StorageV1ApiResponseProcessor { throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to replaceVolumeAttributesClass + * @throws ApiException if the response code was not in [200, 299] + */ + public async replaceVolumeAttributesClassWithHttpInfo(response: ResponseContext): Promise> { + const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); + if (isCodeInRange("200", response.httpStatusCode)) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("201", response.httpStatusCode)) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + if (isCodeInRange("401", response.httpStatusCode)) { + throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: V1VolumeAttributesClass = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "V1VolumeAttributesClass", "" + ) as V1VolumeAttributesClass; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); + } + + throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); + } + } diff --git a/src/gen/apis/StorageV1alpha1Api.ts b/src/gen/apis/StorageV1alpha1Api.ts index d2b208e981..56f6187dd0 100644 --- a/src/gen/apis/StorageV1alpha1Api.ts +++ b/src/gen/apis/StorageV1alpha1Api.ts @@ -86,7 +86,7 @@ export class StorageV1alpha1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -224,7 +224,7 @@ export class StorageV1alpha1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -314,7 +314,7 @@ export class StorageV1alpha1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -343,7 +343,7 @@ export class StorageV1alpha1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -449,7 +449,7 @@ export class StorageV1alpha1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -547,7 +547,7 @@ export class StorageV1alpha1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -591,7 +591,7 @@ export class StorageV1alpha1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -672,7 +672,7 @@ export class StorageV1alpha1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/StorageV1beta1Api.ts b/src/gen/apis/StorageV1beta1Api.ts index ab4fa4b0e5..b5483e5aa3 100644 --- a/src/gen/apis/StorageV1beta1Api.ts +++ b/src/gen/apis/StorageV1beta1Api.ts @@ -86,7 +86,7 @@ export class StorageV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -224,7 +224,7 @@ export class StorageV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -314,7 +314,7 @@ export class StorageV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -343,7 +343,7 @@ export class StorageV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -449,7 +449,7 @@ export class StorageV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -547,7 +547,7 @@ export class StorageV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -591,7 +591,7 @@ export class StorageV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -672,7 +672,7 @@ export class StorageV1beta1ApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/StoragemigrationApi.ts b/src/gen/apis/StoragemigrationApi.ts index 5add709bd8..f39442d65c 100644 --- a/src/gen/apis/StoragemigrationApi.ts +++ b/src/gen/apis/StoragemigrationApi.ts @@ -38,7 +38,7 @@ export class StoragemigrationApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/StoragemigrationV1alpha1Api.ts b/src/gen/apis/StoragemigrationV1alpha1Api.ts index 3ca0a0ec7a..0384e07c7b 100644 --- a/src/gen/apis/StoragemigrationV1alpha1Api.ts +++ b/src/gen/apis/StoragemigrationV1alpha1Api.ts @@ -86,7 +86,7 @@ export class StoragemigrationV1alpha1ApiRequestFactory extends BaseAPIRequestFac await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -224,7 +224,7 @@ export class StoragemigrationV1alpha1ApiRequestFactory extends BaseAPIRequestFac await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -314,7 +314,7 @@ export class StoragemigrationV1alpha1ApiRequestFactory extends BaseAPIRequestFac await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -343,7 +343,7 @@ export class StoragemigrationV1alpha1ApiRequestFactory extends BaseAPIRequestFac await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -449,7 +449,7 @@ export class StoragemigrationV1alpha1ApiRequestFactory extends BaseAPIRequestFac await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -547,7 +547,7 @@ export class StoragemigrationV1alpha1ApiRequestFactory extends BaseAPIRequestFac await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -645,7 +645,7 @@ export class StoragemigrationV1alpha1ApiRequestFactory extends BaseAPIRequestFac await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -689,7 +689,7 @@ export class StoragemigrationV1alpha1ApiRequestFactory extends BaseAPIRequestFac await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -733,7 +733,7 @@ export class StoragemigrationV1alpha1ApiRequestFactory extends BaseAPIRequestFac await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -814,7 +814,7 @@ export class StoragemigrationV1alpha1ApiRequestFactory extends BaseAPIRequestFac await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } @@ -895,7 +895,7 @@ export class StoragemigrationV1alpha1ApiRequestFactory extends BaseAPIRequestFac await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/VersionApi.ts b/src/gen/apis/VersionApi.ts index b45982863d..9f3819556f 100644 --- a/src/gen/apis/VersionApi.ts +++ b/src/gen/apis/VersionApi.ts @@ -18,7 +18,7 @@ import { VersionInfo } from '../models/VersionInfo.js'; export class VersionApiRequestFactory extends BaseAPIRequestFactory { /** - * get the code version + * get the version information for this server */ public async getCode(_options?: Configuration): Promise { let _config = _options || this.configuration; @@ -38,7 +38,7 @@ export class VersionApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/WellKnownApi.ts b/src/gen/apis/WellKnownApi.ts index 6625aa325f..e5e69dc150 100644 --- a/src/gen/apis/WellKnownApi.ts +++ b/src/gen/apis/WellKnownApi.ts @@ -37,7 +37,7 @@ export class WellKnownApiRequestFactory extends BaseAPIRequestFactory { await authMethod?.applySecurityAuthentication(requestContext); } - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default + const defaultAuth: SecurityAuthentication | undefined = _config?.authMethods?.default if (defaultAuth?.applySecurityAuthentication) { await defaultAuth?.applySecurityAuthentication(requestContext); } diff --git a/src/gen/apis/exception.ts b/src/gen/apis/exception.ts index 9365d33a8f..00f294ce45 100644 --- a/src/gen/apis/exception.ts +++ b/src/gen/apis/exception.ts @@ -10,6 +10,6 @@ export class ApiException extends Error { public constructor(public code: number, message: string, public body: T, public headers: { [key: string]: string; }) { super("HTTP-Code: " + code + "\nMessage: " + message + "\nBody: " + JSON.stringify(body) + "\nHeaders: " + - JSON.stringify(headers)) + JSON.stringify(headers)); } -} +} \ No newline at end of file diff --git a/src/gen/auth/auth.ts b/src/gen/auth/auth.ts index 712183b0d5..306fe8c2ee 100644 --- a/src/gen/auth/auth.ts +++ b/src/gen/auth/auth.ts @@ -41,7 +41,6 @@ export class BearerTokenAuthentication implements SecurityAuthentication { } } - export type AuthMethods = { "default"?: SecurityAuthentication, "BearerToken"?: SecurityAuthentication diff --git a/src/gen/configuration.ts b/src/gen/configuration.ts index ad2436fec9..61db7ffa47 100644 --- a/src/gen/configuration.ts +++ b/src/gen/configuration.ts @@ -4,49 +4,61 @@ import { IsomorphicFetchHttpLibrary as DefaultHttpLibrary } from "./http/isomorp import { BaseServerConfiguration, server1 } from "./servers.js"; import { configureAuthMethods, AuthMethods, AuthMethodsConfiguration } from "./auth/auth.js"; -export interface Configuration { +export interface Configuration { readonly baseServer: BaseServerConfiguration; readonly httpApi: HttpLibrary; - readonly middleware: Middleware[]; + readonly middleware: M[]; readonly authMethods: AuthMethods; } +// Additional option specific to middleware merge strategy +export interface MiddlewareMergeOptions { + // default is `"replace"` for backwards compatibility + middlewareMergeStrategy?: "replace" | "append" | "prepend"; +} + +// Unify configuration options using Partial plus extra merge strategy +export type ConfigurationOptions = Partial> & MiddlewareMergeOptions; + +// aliases for convenience +export type StandardConfigurationOptions = ConfigurationOptions; +export type PromiseConfigurationOptions = ConfigurationOptions; /** * Interface with which a configuration object can be configured. */ export interface ConfigurationParameters { /** - * Default server to use - a list of available servers (according to the + * Default server to use - a list of available servers (according to the * OpenAPI yaml definition) is included in the `servers` const in `./servers`. You can also - * create your own server with the `ServerConfiguration` class from the same + * create your own server with the `ServerConfiguration` class from the same * file. */ baseServer?: BaseServerConfiguration; /** - * HTTP library to use e.g. IsomorphicFetch. This can usually be skipped as + * HTTP library to use e.g. IsomorphicFetch. This can usually be skipped as * all generators come with a default library. * If available, additional libraries can be imported from `./http/*` */ httpApi?: HttpLibrary; /** - * The middlewares which will be applied to requests and responses. You can - * add any number of middleware components to modify requests before they + * The middlewares which will be applied to requests and responses. You can + * add any number of middleware components to modify requests before they * are sent or before they are deserialized by implementing the `Middleware` * interface defined in `./middleware` */ middleware?: Middleware[]; /** - * Configures middleware functions that return promises instead of - * Observables (which are used by `middleware`). Otherwise allows for the - * same functionality as `middleware`, i.e., modifying requests before they + * Configures middleware functions that return promises instead of + * Observables (which are used by `middleware`). Otherwise allows for the + * same functionality as `middleware`, i.e., modifying requests before they * are sent and before they are deserialized. */ promiseMiddleware?: PromiseMiddleware[]; /** - * Configuration for the available authentication methods (e.g., api keys) - * according to the OpenAPI yaml definition. For the definition, please refer to + * Configuration for the available authentication methods (e.g., api keys) + * according to the OpenAPI yaml definition. For the definition, please refer to * `./auth/auth` */ authMethods?: AuthMethodsConfiguration @@ -54,7 +66,7 @@ export interface ConfigurationParameters { /** * Provide your `ConfigurationParameters` to this function to get a `Configuration` - * object that can be used to configure your APIs (in the constructor or + * object that can be used to configure your APIs (in the constructor or * for each request individually). * * If a property is not included in conf, a default is used: @@ -79,4 +91,53 @@ export function createConfiguration(conf: ConfigurationParameters = {}): Configu ); } return configuration; -} \ No newline at end of file +} + +/** + * Merge configuration options into a configuration. + */ +export function mergeConfiguration(conf: Configuration, options?: ConfigurationOptions): Configuration { + if (!options) { + return conf; + } + return { + baseServer: options.baseServer || conf.baseServer, + httpApi: options.httpApi || conf.httpApi, + authMethods: options.authMethods || conf.authMethods, + middleware: mergeMiddleware(conf.middleware, options?.middleware, options?.middlewareMergeStrategy), + }; +} + +function mergeMiddleware(staticMiddleware: Middleware[], calltimeMiddleware?: Middleware[], strategy: "append" | "prepend" | "replace" = "replace") { + if (!calltimeMiddleware) { + return staticMiddleware; + } + switch(strategy) { + case "append": + return staticMiddleware.concat(calltimeMiddleware); + case "prepend": + return calltimeMiddleware.concat(staticMiddleware) + case "replace": + return calltimeMiddleware + default: + throw new Error(`Unrecognized middleware merge strategy '${strategy}'`) + } +} + +/** + * Convert Promise-based configuration options to Observable-based configuration options. + */ +export function wrapOptions(options?: PromiseConfigurationOptions): StandardConfigurationOptions | undefined { + if (options) { + return { + baseServer: options.baseServer, + httpApi: options.httpApi, + middleware: options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: options.middlewareMergeStrategy, + authMethods: options.authMethods, + }; + } + return; +} diff --git a/src/gen/http/http.ts b/src/gen/http/http.ts index 04e5e57257..79bcf792e0 100644 --- a/src/gen/http/http.ts +++ b/src/gen/http/http.ts @@ -57,6 +57,7 @@ export class RequestContext { private headers: Headers = {}; private body: RequestBody = undefined; private url: URL; + private signal: AbortSignal | undefined = undefined; private agent: http.Agent | https.Agent | undefined = undefined; /** @@ -135,6 +136,15 @@ export class RequestContext { this.headers[key] = value; } + public setSignal(signal: AbortSignal): void { + this.signal = signal; + } + + public getSignal(): AbortSignal | undefined { + return this.signal; + } + + public setAgent(agent: http.Agent | https.Agent) { this.agent = agent; } diff --git a/src/gen/http/isomorphic-fetch.ts b/src/gen/http/isomorphic-fetch.ts index d05dc7f9ef..2d3d6179aa 100644 --- a/src/gen/http/isomorphic-fetch.ts +++ b/src/gen/http/isomorphic-fetch.ts @@ -12,6 +12,7 @@ export class IsomorphicFetchHttpLibrary implements HttpLibrary { method: method, body: body as any, headers: request.getHeaders(), + signal: request.getSignal(), agent: request.getAgent(), }).then((resp: any) => { const headers: { [name: string]: string } = {}; diff --git a/src/gen/index.ts b/src/gen/index.ts index 914164c975..0b62c310f7 100644 --- a/src/gen/index.ts +++ b/src/gen/index.ts @@ -2,11 +2,12 @@ export * from "./http/http.js"; export * from "./auth/auth.js"; export * from "./models/all.js"; export { createConfiguration } from "./configuration.js" -export type { Configuration } from "./configuration.js" +export type { Configuration, ConfigurationOptions, PromiseConfigurationOptions } from "./configuration.js" export * from "./apis/exception.js"; export * from "./servers.js"; export { RequiredError } from "./apis/baseapi.js"; -export type { PromiseMiddleware as Middleware } from './middleware.js'; -export { type AdmissionregistrationApiGetAPIGroupRequest, ObjectAdmissionregistrationApi as AdmissionregistrationApi, type AdmissionregistrationV1ApiCreateMutatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiCreateValidatingAdmissionPolicyRequest, type AdmissionregistrationV1ApiCreateValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1ApiCreateValidatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiDeleteCollectionMutatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiDeleteCollectionValidatingAdmissionPolicyRequest, type AdmissionregistrationV1ApiDeleteCollectionValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1ApiDeleteCollectionValidatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiDeleteMutatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiDeleteValidatingAdmissionPolicyRequest, type AdmissionregistrationV1ApiDeleteValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1ApiDeleteValidatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiGetAPIResourcesRequest, type AdmissionregistrationV1ApiListMutatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiListValidatingAdmissionPolicyRequest, type AdmissionregistrationV1ApiListValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1ApiListValidatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiPatchMutatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiPatchValidatingAdmissionPolicyRequest, type AdmissionregistrationV1ApiPatchValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1ApiPatchValidatingAdmissionPolicyStatusRequest, type AdmissionregistrationV1ApiPatchValidatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiReadMutatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiReadValidatingAdmissionPolicyRequest, type AdmissionregistrationV1ApiReadValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1ApiReadValidatingAdmissionPolicyStatusRequest, type AdmissionregistrationV1ApiReadValidatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiReplaceMutatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiReplaceValidatingAdmissionPolicyRequest, type AdmissionregistrationV1ApiReplaceValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1ApiReplaceValidatingAdmissionPolicyStatusRequest, type AdmissionregistrationV1ApiReplaceValidatingWebhookConfigurationRequest, ObjectAdmissionregistrationV1Api as AdmissionregistrationV1Api, type AdmissionregistrationV1alpha1ApiCreateMutatingAdmissionPolicyRequest, type AdmissionregistrationV1alpha1ApiCreateMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1alpha1ApiDeleteCollectionMutatingAdmissionPolicyRequest, type AdmissionregistrationV1alpha1ApiDeleteCollectionMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1alpha1ApiDeleteMutatingAdmissionPolicyRequest, type AdmissionregistrationV1alpha1ApiDeleteMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1alpha1ApiGetAPIResourcesRequest, type AdmissionregistrationV1alpha1ApiListMutatingAdmissionPolicyRequest, type AdmissionregistrationV1alpha1ApiListMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1alpha1ApiPatchMutatingAdmissionPolicyRequest, type AdmissionregistrationV1alpha1ApiPatchMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1alpha1ApiReadMutatingAdmissionPolicyRequest, type AdmissionregistrationV1alpha1ApiReadMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1alpha1ApiReplaceMutatingAdmissionPolicyRequest, type AdmissionregistrationV1alpha1ApiReplaceMutatingAdmissionPolicyBindingRequest, ObjectAdmissionregistrationV1alpha1Api as AdmissionregistrationV1alpha1Api, type AdmissionregistrationV1beta1ApiCreateValidatingAdmissionPolicyRequest, type AdmissionregistrationV1beta1ApiCreateValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1beta1ApiDeleteCollectionValidatingAdmissionPolicyRequest, type AdmissionregistrationV1beta1ApiDeleteCollectionValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1beta1ApiDeleteValidatingAdmissionPolicyRequest, type AdmissionregistrationV1beta1ApiDeleteValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1beta1ApiGetAPIResourcesRequest, type AdmissionregistrationV1beta1ApiListValidatingAdmissionPolicyRequest, type AdmissionregistrationV1beta1ApiListValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1beta1ApiPatchValidatingAdmissionPolicyRequest, type AdmissionregistrationV1beta1ApiPatchValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1beta1ApiPatchValidatingAdmissionPolicyStatusRequest, type AdmissionregistrationV1beta1ApiReadValidatingAdmissionPolicyRequest, type AdmissionregistrationV1beta1ApiReadValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1beta1ApiReadValidatingAdmissionPolicyStatusRequest, type AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyRequest, type AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyStatusRequest, ObjectAdmissionregistrationV1beta1Api as AdmissionregistrationV1beta1Api, type ApiextensionsApiGetAPIGroupRequest, ObjectApiextensionsApi as ApiextensionsApi, type ApiextensionsV1ApiCreateCustomResourceDefinitionRequest, type ApiextensionsV1ApiDeleteCollectionCustomResourceDefinitionRequest, type ApiextensionsV1ApiDeleteCustomResourceDefinitionRequest, type ApiextensionsV1ApiGetAPIResourcesRequest, type ApiextensionsV1ApiListCustomResourceDefinitionRequest, type ApiextensionsV1ApiPatchCustomResourceDefinitionRequest, type ApiextensionsV1ApiPatchCustomResourceDefinitionStatusRequest, type ApiextensionsV1ApiReadCustomResourceDefinitionRequest, type ApiextensionsV1ApiReadCustomResourceDefinitionStatusRequest, type ApiextensionsV1ApiReplaceCustomResourceDefinitionRequest, type ApiextensionsV1ApiReplaceCustomResourceDefinitionStatusRequest, ObjectApiextensionsV1Api as ApiextensionsV1Api, type ApiregistrationApiGetAPIGroupRequest, ObjectApiregistrationApi as ApiregistrationApi, type ApiregistrationV1ApiCreateAPIServiceRequest, type ApiregistrationV1ApiDeleteAPIServiceRequest, type ApiregistrationV1ApiDeleteCollectionAPIServiceRequest, type ApiregistrationV1ApiGetAPIResourcesRequest, type ApiregistrationV1ApiListAPIServiceRequest, type ApiregistrationV1ApiPatchAPIServiceRequest, type ApiregistrationV1ApiPatchAPIServiceStatusRequest, type ApiregistrationV1ApiReadAPIServiceRequest, type ApiregistrationV1ApiReadAPIServiceStatusRequest, type ApiregistrationV1ApiReplaceAPIServiceRequest, type ApiregistrationV1ApiReplaceAPIServiceStatusRequest, ObjectApiregistrationV1Api as ApiregistrationV1Api, type ApisApiGetAPIVersionsRequest, ObjectApisApi as ApisApi, type AppsApiGetAPIGroupRequest, ObjectAppsApi as AppsApi, type AppsV1ApiCreateNamespacedControllerRevisionRequest, type AppsV1ApiCreateNamespacedDaemonSetRequest, type AppsV1ApiCreateNamespacedDeploymentRequest, type AppsV1ApiCreateNamespacedReplicaSetRequest, type AppsV1ApiCreateNamespacedStatefulSetRequest, type AppsV1ApiDeleteCollectionNamespacedControllerRevisionRequest, type AppsV1ApiDeleteCollectionNamespacedDaemonSetRequest, type AppsV1ApiDeleteCollectionNamespacedDeploymentRequest, type AppsV1ApiDeleteCollectionNamespacedReplicaSetRequest, type AppsV1ApiDeleteCollectionNamespacedStatefulSetRequest, type AppsV1ApiDeleteNamespacedControllerRevisionRequest, type AppsV1ApiDeleteNamespacedDaemonSetRequest, type AppsV1ApiDeleteNamespacedDeploymentRequest, type AppsV1ApiDeleteNamespacedReplicaSetRequest, type AppsV1ApiDeleteNamespacedStatefulSetRequest, type AppsV1ApiGetAPIResourcesRequest, type AppsV1ApiListControllerRevisionForAllNamespacesRequest, type AppsV1ApiListDaemonSetForAllNamespacesRequest, type AppsV1ApiListDeploymentForAllNamespacesRequest, type AppsV1ApiListNamespacedControllerRevisionRequest, type AppsV1ApiListNamespacedDaemonSetRequest, type AppsV1ApiListNamespacedDeploymentRequest, type AppsV1ApiListNamespacedReplicaSetRequest, type AppsV1ApiListNamespacedStatefulSetRequest, type AppsV1ApiListReplicaSetForAllNamespacesRequest, type AppsV1ApiListStatefulSetForAllNamespacesRequest, type AppsV1ApiPatchNamespacedControllerRevisionRequest, type AppsV1ApiPatchNamespacedDaemonSetRequest, type AppsV1ApiPatchNamespacedDaemonSetStatusRequest, type AppsV1ApiPatchNamespacedDeploymentRequest, type AppsV1ApiPatchNamespacedDeploymentScaleRequest, type AppsV1ApiPatchNamespacedDeploymentStatusRequest, type AppsV1ApiPatchNamespacedReplicaSetRequest, type AppsV1ApiPatchNamespacedReplicaSetScaleRequest, type AppsV1ApiPatchNamespacedReplicaSetStatusRequest, type AppsV1ApiPatchNamespacedStatefulSetRequest, type AppsV1ApiPatchNamespacedStatefulSetScaleRequest, type AppsV1ApiPatchNamespacedStatefulSetStatusRequest, type AppsV1ApiReadNamespacedControllerRevisionRequest, type AppsV1ApiReadNamespacedDaemonSetRequest, type AppsV1ApiReadNamespacedDaemonSetStatusRequest, type AppsV1ApiReadNamespacedDeploymentRequest, type AppsV1ApiReadNamespacedDeploymentScaleRequest, type AppsV1ApiReadNamespacedDeploymentStatusRequest, type AppsV1ApiReadNamespacedReplicaSetRequest, type AppsV1ApiReadNamespacedReplicaSetScaleRequest, type AppsV1ApiReadNamespacedReplicaSetStatusRequest, type AppsV1ApiReadNamespacedStatefulSetRequest, type AppsV1ApiReadNamespacedStatefulSetScaleRequest, type AppsV1ApiReadNamespacedStatefulSetStatusRequest, type AppsV1ApiReplaceNamespacedControllerRevisionRequest, type AppsV1ApiReplaceNamespacedDaemonSetRequest, type AppsV1ApiReplaceNamespacedDaemonSetStatusRequest, type AppsV1ApiReplaceNamespacedDeploymentRequest, type AppsV1ApiReplaceNamespacedDeploymentScaleRequest, type AppsV1ApiReplaceNamespacedDeploymentStatusRequest, type AppsV1ApiReplaceNamespacedReplicaSetRequest, type AppsV1ApiReplaceNamespacedReplicaSetScaleRequest, type AppsV1ApiReplaceNamespacedReplicaSetStatusRequest, type AppsV1ApiReplaceNamespacedStatefulSetRequest, type AppsV1ApiReplaceNamespacedStatefulSetScaleRequest, type AppsV1ApiReplaceNamespacedStatefulSetStatusRequest, ObjectAppsV1Api as AppsV1Api, type AuthenticationApiGetAPIGroupRequest, ObjectAuthenticationApi as AuthenticationApi, type AuthenticationV1ApiCreateSelfSubjectReviewRequest, type AuthenticationV1ApiCreateTokenReviewRequest, type AuthenticationV1ApiGetAPIResourcesRequest, ObjectAuthenticationV1Api as AuthenticationV1Api, type AuthenticationV1beta1ApiCreateSelfSubjectReviewRequest, type AuthenticationV1beta1ApiGetAPIResourcesRequest, ObjectAuthenticationV1beta1Api as AuthenticationV1beta1Api, type AuthorizationApiGetAPIGroupRequest, ObjectAuthorizationApi as AuthorizationApi, type AuthorizationV1ApiCreateNamespacedLocalSubjectAccessReviewRequest, type AuthorizationV1ApiCreateSelfSubjectAccessReviewRequest, type AuthorizationV1ApiCreateSelfSubjectRulesReviewRequest, type AuthorizationV1ApiCreateSubjectAccessReviewRequest, type AuthorizationV1ApiGetAPIResourcesRequest, ObjectAuthorizationV1Api as AuthorizationV1Api, type AutoscalingApiGetAPIGroupRequest, ObjectAutoscalingApi as AutoscalingApi, type AutoscalingV1ApiCreateNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV1ApiDeleteCollectionNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV1ApiDeleteNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV1ApiGetAPIResourcesRequest, type AutoscalingV1ApiListHorizontalPodAutoscalerForAllNamespacesRequest, type AutoscalingV1ApiListNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV1ApiPatchNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV1ApiPatchNamespacedHorizontalPodAutoscalerStatusRequest, type AutoscalingV1ApiReadNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV1ApiReadNamespacedHorizontalPodAutoscalerStatusRequest, type AutoscalingV1ApiReplaceNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV1ApiReplaceNamespacedHorizontalPodAutoscalerStatusRequest, ObjectAutoscalingV1Api as AutoscalingV1Api, type AutoscalingV2ApiCreateNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV2ApiDeleteCollectionNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV2ApiDeleteNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV2ApiGetAPIResourcesRequest, type AutoscalingV2ApiListHorizontalPodAutoscalerForAllNamespacesRequest, type AutoscalingV2ApiListNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV2ApiPatchNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV2ApiPatchNamespacedHorizontalPodAutoscalerStatusRequest, type AutoscalingV2ApiReadNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV2ApiReadNamespacedHorizontalPodAutoscalerStatusRequest, type AutoscalingV2ApiReplaceNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV2ApiReplaceNamespacedHorizontalPodAutoscalerStatusRequest, ObjectAutoscalingV2Api as AutoscalingV2Api, type BatchApiGetAPIGroupRequest, ObjectBatchApi as BatchApi, type BatchV1ApiCreateNamespacedCronJobRequest, type BatchV1ApiCreateNamespacedJobRequest, type BatchV1ApiDeleteCollectionNamespacedCronJobRequest, type BatchV1ApiDeleteCollectionNamespacedJobRequest, type BatchV1ApiDeleteNamespacedCronJobRequest, type BatchV1ApiDeleteNamespacedJobRequest, type BatchV1ApiGetAPIResourcesRequest, type BatchV1ApiListCronJobForAllNamespacesRequest, type BatchV1ApiListJobForAllNamespacesRequest, type BatchV1ApiListNamespacedCronJobRequest, type BatchV1ApiListNamespacedJobRequest, type BatchV1ApiPatchNamespacedCronJobRequest, type BatchV1ApiPatchNamespacedCronJobStatusRequest, type BatchV1ApiPatchNamespacedJobRequest, type BatchV1ApiPatchNamespacedJobStatusRequest, type BatchV1ApiReadNamespacedCronJobRequest, type BatchV1ApiReadNamespacedCronJobStatusRequest, type BatchV1ApiReadNamespacedJobRequest, type BatchV1ApiReadNamespacedJobStatusRequest, type BatchV1ApiReplaceNamespacedCronJobRequest, type BatchV1ApiReplaceNamespacedCronJobStatusRequest, type BatchV1ApiReplaceNamespacedJobRequest, type BatchV1ApiReplaceNamespacedJobStatusRequest, ObjectBatchV1Api as BatchV1Api, type CertificatesApiGetAPIGroupRequest, ObjectCertificatesApi as CertificatesApi, type CertificatesV1ApiCreateCertificateSigningRequestRequest, type CertificatesV1ApiDeleteCertificateSigningRequestRequest, type CertificatesV1ApiDeleteCollectionCertificateSigningRequestRequest, type CertificatesV1ApiGetAPIResourcesRequest, type CertificatesV1ApiListCertificateSigningRequestRequest, type CertificatesV1ApiPatchCertificateSigningRequestRequest, type CertificatesV1ApiPatchCertificateSigningRequestApprovalRequest, type CertificatesV1ApiPatchCertificateSigningRequestStatusRequest, type CertificatesV1ApiReadCertificateSigningRequestRequest, type CertificatesV1ApiReadCertificateSigningRequestApprovalRequest, type CertificatesV1ApiReadCertificateSigningRequestStatusRequest, type CertificatesV1ApiReplaceCertificateSigningRequestRequest, type CertificatesV1ApiReplaceCertificateSigningRequestApprovalRequest, type CertificatesV1ApiReplaceCertificateSigningRequestStatusRequest, ObjectCertificatesV1Api as CertificatesV1Api, type CertificatesV1alpha1ApiCreateClusterTrustBundleRequest, type CertificatesV1alpha1ApiDeleteClusterTrustBundleRequest, type CertificatesV1alpha1ApiDeleteCollectionClusterTrustBundleRequest, type CertificatesV1alpha1ApiGetAPIResourcesRequest, type CertificatesV1alpha1ApiListClusterTrustBundleRequest, type CertificatesV1alpha1ApiPatchClusterTrustBundleRequest, type CertificatesV1alpha1ApiReadClusterTrustBundleRequest, type CertificatesV1alpha1ApiReplaceClusterTrustBundleRequest, ObjectCertificatesV1alpha1Api as CertificatesV1alpha1Api, type CoordinationApiGetAPIGroupRequest, ObjectCoordinationApi as CoordinationApi, type CoordinationV1ApiCreateNamespacedLeaseRequest, type CoordinationV1ApiDeleteCollectionNamespacedLeaseRequest, type CoordinationV1ApiDeleteNamespacedLeaseRequest, type CoordinationV1ApiGetAPIResourcesRequest, type CoordinationV1ApiListLeaseForAllNamespacesRequest, type CoordinationV1ApiListNamespacedLeaseRequest, type CoordinationV1ApiPatchNamespacedLeaseRequest, type CoordinationV1ApiReadNamespacedLeaseRequest, type CoordinationV1ApiReplaceNamespacedLeaseRequest, ObjectCoordinationV1Api as CoordinationV1Api, type CoordinationV1alpha2ApiCreateNamespacedLeaseCandidateRequest, type CoordinationV1alpha2ApiDeleteCollectionNamespacedLeaseCandidateRequest, type CoordinationV1alpha2ApiDeleteNamespacedLeaseCandidateRequest, type CoordinationV1alpha2ApiGetAPIResourcesRequest, type CoordinationV1alpha2ApiListLeaseCandidateForAllNamespacesRequest, type CoordinationV1alpha2ApiListNamespacedLeaseCandidateRequest, type CoordinationV1alpha2ApiPatchNamespacedLeaseCandidateRequest, type CoordinationV1alpha2ApiReadNamespacedLeaseCandidateRequest, type CoordinationV1alpha2ApiReplaceNamespacedLeaseCandidateRequest, ObjectCoordinationV1alpha2Api as CoordinationV1alpha2Api, type CoreApiGetAPIVersionsRequest, ObjectCoreApi as CoreApi, type CoreV1ApiConnectDeleteNamespacedPodProxyRequest, type CoreV1ApiConnectDeleteNamespacedPodProxyWithPathRequest, type CoreV1ApiConnectDeleteNamespacedServiceProxyRequest, type CoreV1ApiConnectDeleteNamespacedServiceProxyWithPathRequest, type CoreV1ApiConnectDeleteNodeProxyRequest, type CoreV1ApiConnectDeleteNodeProxyWithPathRequest, type CoreV1ApiConnectGetNamespacedPodAttachRequest, type CoreV1ApiConnectGetNamespacedPodExecRequest, type CoreV1ApiConnectGetNamespacedPodPortforwardRequest, type CoreV1ApiConnectGetNamespacedPodProxyRequest, type CoreV1ApiConnectGetNamespacedPodProxyWithPathRequest, type CoreV1ApiConnectGetNamespacedServiceProxyRequest, type CoreV1ApiConnectGetNamespacedServiceProxyWithPathRequest, type CoreV1ApiConnectGetNodeProxyRequest, type CoreV1ApiConnectGetNodeProxyWithPathRequest, type CoreV1ApiConnectHeadNamespacedPodProxyRequest, type CoreV1ApiConnectHeadNamespacedPodProxyWithPathRequest, type CoreV1ApiConnectHeadNamespacedServiceProxyRequest, type CoreV1ApiConnectHeadNamespacedServiceProxyWithPathRequest, type CoreV1ApiConnectHeadNodeProxyRequest, type CoreV1ApiConnectHeadNodeProxyWithPathRequest, type CoreV1ApiConnectOptionsNamespacedPodProxyRequest, type CoreV1ApiConnectOptionsNamespacedPodProxyWithPathRequest, type CoreV1ApiConnectOptionsNamespacedServiceProxyRequest, type CoreV1ApiConnectOptionsNamespacedServiceProxyWithPathRequest, type CoreV1ApiConnectOptionsNodeProxyRequest, type CoreV1ApiConnectOptionsNodeProxyWithPathRequest, type CoreV1ApiConnectPatchNamespacedPodProxyRequest, type CoreV1ApiConnectPatchNamespacedPodProxyWithPathRequest, type CoreV1ApiConnectPatchNamespacedServiceProxyRequest, type CoreV1ApiConnectPatchNamespacedServiceProxyWithPathRequest, type CoreV1ApiConnectPatchNodeProxyRequest, type CoreV1ApiConnectPatchNodeProxyWithPathRequest, type CoreV1ApiConnectPostNamespacedPodAttachRequest, type CoreV1ApiConnectPostNamespacedPodExecRequest, type CoreV1ApiConnectPostNamespacedPodPortforwardRequest, type CoreV1ApiConnectPostNamespacedPodProxyRequest, type CoreV1ApiConnectPostNamespacedPodProxyWithPathRequest, type CoreV1ApiConnectPostNamespacedServiceProxyRequest, type CoreV1ApiConnectPostNamespacedServiceProxyWithPathRequest, type CoreV1ApiConnectPostNodeProxyRequest, type CoreV1ApiConnectPostNodeProxyWithPathRequest, type CoreV1ApiConnectPutNamespacedPodProxyRequest, type CoreV1ApiConnectPutNamespacedPodProxyWithPathRequest, type CoreV1ApiConnectPutNamespacedServiceProxyRequest, type CoreV1ApiConnectPutNamespacedServiceProxyWithPathRequest, type CoreV1ApiConnectPutNodeProxyRequest, type CoreV1ApiConnectPutNodeProxyWithPathRequest, type CoreV1ApiCreateNamespaceRequest, type CoreV1ApiCreateNamespacedBindingRequest, type CoreV1ApiCreateNamespacedConfigMapRequest, type CoreV1ApiCreateNamespacedEndpointsRequest, type CoreV1ApiCreateNamespacedEventRequest, type CoreV1ApiCreateNamespacedLimitRangeRequest, type CoreV1ApiCreateNamespacedPersistentVolumeClaimRequest, type CoreV1ApiCreateNamespacedPodRequest, type CoreV1ApiCreateNamespacedPodBindingRequest, type CoreV1ApiCreateNamespacedPodEvictionRequest, type CoreV1ApiCreateNamespacedPodTemplateRequest, type CoreV1ApiCreateNamespacedReplicationControllerRequest, type CoreV1ApiCreateNamespacedResourceQuotaRequest, type CoreV1ApiCreateNamespacedSecretRequest, type CoreV1ApiCreateNamespacedServiceRequest, type CoreV1ApiCreateNamespacedServiceAccountRequest, type CoreV1ApiCreateNamespacedServiceAccountTokenRequest, type CoreV1ApiCreateNodeRequest, type CoreV1ApiCreatePersistentVolumeRequest, type CoreV1ApiDeleteCollectionNamespacedConfigMapRequest, type CoreV1ApiDeleteCollectionNamespacedEndpointsRequest, type CoreV1ApiDeleteCollectionNamespacedEventRequest, type CoreV1ApiDeleteCollectionNamespacedLimitRangeRequest, type CoreV1ApiDeleteCollectionNamespacedPersistentVolumeClaimRequest, type CoreV1ApiDeleteCollectionNamespacedPodRequest, type CoreV1ApiDeleteCollectionNamespacedPodTemplateRequest, type CoreV1ApiDeleteCollectionNamespacedReplicationControllerRequest, type CoreV1ApiDeleteCollectionNamespacedResourceQuotaRequest, type CoreV1ApiDeleteCollectionNamespacedSecretRequest, type CoreV1ApiDeleteCollectionNamespacedServiceRequest, type CoreV1ApiDeleteCollectionNamespacedServiceAccountRequest, type CoreV1ApiDeleteCollectionNodeRequest, type CoreV1ApiDeleteCollectionPersistentVolumeRequest, type CoreV1ApiDeleteNamespaceRequest, type CoreV1ApiDeleteNamespacedConfigMapRequest, type CoreV1ApiDeleteNamespacedEndpointsRequest, type CoreV1ApiDeleteNamespacedEventRequest, type CoreV1ApiDeleteNamespacedLimitRangeRequest, type CoreV1ApiDeleteNamespacedPersistentVolumeClaimRequest, type CoreV1ApiDeleteNamespacedPodRequest, type CoreV1ApiDeleteNamespacedPodTemplateRequest, type CoreV1ApiDeleteNamespacedReplicationControllerRequest, type CoreV1ApiDeleteNamespacedResourceQuotaRequest, type CoreV1ApiDeleteNamespacedSecretRequest, type CoreV1ApiDeleteNamespacedServiceRequest, type CoreV1ApiDeleteNamespacedServiceAccountRequest, type CoreV1ApiDeleteNodeRequest, type CoreV1ApiDeletePersistentVolumeRequest, type CoreV1ApiGetAPIResourcesRequest, type CoreV1ApiListComponentStatusRequest, type CoreV1ApiListConfigMapForAllNamespacesRequest, type CoreV1ApiListEndpointsForAllNamespacesRequest, type CoreV1ApiListEventForAllNamespacesRequest, type CoreV1ApiListLimitRangeForAllNamespacesRequest, type CoreV1ApiListNamespaceRequest, type CoreV1ApiListNamespacedConfigMapRequest, type CoreV1ApiListNamespacedEndpointsRequest, type CoreV1ApiListNamespacedEventRequest, type CoreV1ApiListNamespacedLimitRangeRequest, type CoreV1ApiListNamespacedPersistentVolumeClaimRequest, type CoreV1ApiListNamespacedPodRequest, type CoreV1ApiListNamespacedPodTemplateRequest, type CoreV1ApiListNamespacedReplicationControllerRequest, type CoreV1ApiListNamespacedResourceQuotaRequest, type CoreV1ApiListNamespacedSecretRequest, type CoreV1ApiListNamespacedServiceRequest, type CoreV1ApiListNamespacedServiceAccountRequest, type CoreV1ApiListNodeRequest, type CoreV1ApiListPersistentVolumeRequest, type CoreV1ApiListPersistentVolumeClaimForAllNamespacesRequest, type CoreV1ApiListPodForAllNamespacesRequest, type CoreV1ApiListPodTemplateForAllNamespacesRequest, type CoreV1ApiListReplicationControllerForAllNamespacesRequest, type CoreV1ApiListResourceQuotaForAllNamespacesRequest, type CoreV1ApiListSecretForAllNamespacesRequest, type CoreV1ApiListServiceAccountForAllNamespacesRequest, type CoreV1ApiListServiceForAllNamespacesRequest, type CoreV1ApiPatchNamespaceRequest, type CoreV1ApiPatchNamespaceStatusRequest, type CoreV1ApiPatchNamespacedConfigMapRequest, type CoreV1ApiPatchNamespacedEndpointsRequest, type CoreV1ApiPatchNamespacedEventRequest, type CoreV1ApiPatchNamespacedLimitRangeRequest, type CoreV1ApiPatchNamespacedPersistentVolumeClaimRequest, type CoreV1ApiPatchNamespacedPersistentVolumeClaimStatusRequest, type CoreV1ApiPatchNamespacedPodRequest, type CoreV1ApiPatchNamespacedPodEphemeralcontainersRequest, type CoreV1ApiPatchNamespacedPodResizeRequest, type CoreV1ApiPatchNamespacedPodStatusRequest, type CoreV1ApiPatchNamespacedPodTemplateRequest, type CoreV1ApiPatchNamespacedReplicationControllerRequest, type CoreV1ApiPatchNamespacedReplicationControllerScaleRequest, type CoreV1ApiPatchNamespacedReplicationControllerStatusRequest, type CoreV1ApiPatchNamespacedResourceQuotaRequest, type CoreV1ApiPatchNamespacedResourceQuotaStatusRequest, type CoreV1ApiPatchNamespacedSecretRequest, type CoreV1ApiPatchNamespacedServiceRequest, type CoreV1ApiPatchNamespacedServiceAccountRequest, type CoreV1ApiPatchNamespacedServiceStatusRequest, type CoreV1ApiPatchNodeRequest, type CoreV1ApiPatchNodeStatusRequest, type CoreV1ApiPatchPersistentVolumeRequest, type CoreV1ApiPatchPersistentVolumeStatusRequest, type CoreV1ApiReadComponentStatusRequest, type CoreV1ApiReadNamespaceRequest, type CoreV1ApiReadNamespaceStatusRequest, type CoreV1ApiReadNamespacedConfigMapRequest, type CoreV1ApiReadNamespacedEndpointsRequest, type CoreV1ApiReadNamespacedEventRequest, type CoreV1ApiReadNamespacedLimitRangeRequest, type CoreV1ApiReadNamespacedPersistentVolumeClaimRequest, type CoreV1ApiReadNamespacedPersistentVolumeClaimStatusRequest, type CoreV1ApiReadNamespacedPodRequest, type CoreV1ApiReadNamespacedPodEphemeralcontainersRequest, type CoreV1ApiReadNamespacedPodLogRequest, type CoreV1ApiReadNamespacedPodResizeRequest, type CoreV1ApiReadNamespacedPodStatusRequest, type CoreV1ApiReadNamespacedPodTemplateRequest, type CoreV1ApiReadNamespacedReplicationControllerRequest, type CoreV1ApiReadNamespacedReplicationControllerScaleRequest, type CoreV1ApiReadNamespacedReplicationControllerStatusRequest, type CoreV1ApiReadNamespacedResourceQuotaRequest, type CoreV1ApiReadNamespacedResourceQuotaStatusRequest, type CoreV1ApiReadNamespacedSecretRequest, type CoreV1ApiReadNamespacedServiceRequest, type CoreV1ApiReadNamespacedServiceAccountRequest, type CoreV1ApiReadNamespacedServiceStatusRequest, type CoreV1ApiReadNodeRequest, type CoreV1ApiReadNodeStatusRequest, type CoreV1ApiReadPersistentVolumeRequest, type CoreV1ApiReadPersistentVolumeStatusRequest, type CoreV1ApiReplaceNamespaceRequest, type CoreV1ApiReplaceNamespaceFinalizeRequest, type CoreV1ApiReplaceNamespaceStatusRequest, type CoreV1ApiReplaceNamespacedConfigMapRequest, type CoreV1ApiReplaceNamespacedEndpointsRequest, type CoreV1ApiReplaceNamespacedEventRequest, type CoreV1ApiReplaceNamespacedLimitRangeRequest, type CoreV1ApiReplaceNamespacedPersistentVolumeClaimRequest, type CoreV1ApiReplaceNamespacedPersistentVolumeClaimStatusRequest, type CoreV1ApiReplaceNamespacedPodRequest, type CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest, type CoreV1ApiReplaceNamespacedPodResizeRequest, type CoreV1ApiReplaceNamespacedPodStatusRequest, type CoreV1ApiReplaceNamespacedPodTemplateRequest, type CoreV1ApiReplaceNamespacedReplicationControllerRequest, type CoreV1ApiReplaceNamespacedReplicationControllerScaleRequest, type CoreV1ApiReplaceNamespacedReplicationControllerStatusRequest, type CoreV1ApiReplaceNamespacedResourceQuotaRequest, type CoreV1ApiReplaceNamespacedResourceQuotaStatusRequest, type CoreV1ApiReplaceNamespacedSecretRequest, type CoreV1ApiReplaceNamespacedServiceRequest, type CoreV1ApiReplaceNamespacedServiceAccountRequest, type CoreV1ApiReplaceNamespacedServiceStatusRequest, type CoreV1ApiReplaceNodeRequest, type CoreV1ApiReplaceNodeStatusRequest, type CoreV1ApiReplacePersistentVolumeRequest, type CoreV1ApiReplacePersistentVolumeStatusRequest, ObjectCoreV1Api as CoreV1Api, type CustomObjectsApiCreateClusterCustomObjectRequest, type CustomObjectsApiCreateNamespacedCustomObjectRequest, type CustomObjectsApiDeleteClusterCustomObjectRequest, type CustomObjectsApiDeleteCollectionClusterCustomObjectRequest, type CustomObjectsApiDeleteCollectionNamespacedCustomObjectRequest, type CustomObjectsApiDeleteNamespacedCustomObjectRequest, type CustomObjectsApiGetAPIResourcesRequest, type CustomObjectsApiGetClusterCustomObjectRequest, type CustomObjectsApiGetClusterCustomObjectScaleRequest, type CustomObjectsApiGetClusterCustomObjectStatusRequest, type CustomObjectsApiGetNamespacedCustomObjectRequest, type CustomObjectsApiGetNamespacedCustomObjectScaleRequest, type CustomObjectsApiGetNamespacedCustomObjectStatusRequest, type CustomObjectsApiListClusterCustomObjectRequest, type CustomObjectsApiListCustomObjectForAllNamespacesRequest, type CustomObjectsApiListNamespacedCustomObjectRequest, type CustomObjectsApiPatchClusterCustomObjectRequest, type CustomObjectsApiPatchClusterCustomObjectScaleRequest, type CustomObjectsApiPatchClusterCustomObjectStatusRequest, type CustomObjectsApiPatchNamespacedCustomObjectRequest, type CustomObjectsApiPatchNamespacedCustomObjectScaleRequest, type CustomObjectsApiPatchNamespacedCustomObjectStatusRequest, type CustomObjectsApiReplaceClusterCustomObjectRequest, type CustomObjectsApiReplaceClusterCustomObjectScaleRequest, type CustomObjectsApiReplaceClusterCustomObjectStatusRequest, type CustomObjectsApiReplaceNamespacedCustomObjectRequest, type CustomObjectsApiReplaceNamespacedCustomObjectScaleRequest, type CustomObjectsApiReplaceNamespacedCustomObjectStatusRequest, ObjectCustomObjectsApi as CustomObjectsApi, type DiscoveryApiGetAPIGroupRequest, ObjectDiscoveryApi as DiscoveryApi, type DiscoveryV1ApiCreateNamespacedEndpointSliceRequest, type DiscoveryV1ApiDeleteCollectionNamespacedEndpointSliceRequest, type DiscoveryV1ApiDeleteNamespacedEndpointSliceRequest, type DiscoveryV1ApiGetAPIResourcesRequest, type DiscoveryV1ApiListEndpointSliceForAllNamespacesRequest, type DiscoveryV1ApiListNamespacedEndpointSliceRequest, type DiscoveryV1ApiPatchNamespacedEndpointSliceRequest, type DiscoveryV1ApiReadNamespacedEndpointSliceRequest, type DiscoveryV1ApiReplaceNamespacedEndpointSliceRequest, ObjectDiscoveryV1Api as DiscoveryV1Api, type EventsApiGetAPIGroupRequest, ObjectEventsApi as EventsApi, type EventsV1ApiCreateNamespacedEventRequest, type EventsV1ApiDeleteCollectionNamespacedEventRequest, type EventsV1ApiDeleteNamespacedEventRequest, type EventsV1ApiGetAPIResourcesRequest, type EventsV1ApiListEventForAllNamespacesRequest, type EventsV1ApiListNamespacedEventRequest, type EventsV1ApiPatchNamespacedEventRequest, type EventsV1ApiReadNamespacedEventRequest, type EventsV1ApiReplaceNamespacedEventRequest, ObjectEventsV1Api as EventsV1Api, type FlowcontrolApiserverApiGetAPIGroupRequest, ObjectFlowcontrolApiserverApi as FlowcontrolApiserverApi, type FlowcontrolApiserverV1ApiCreateFlowSchemaRequest, type FlowcontrolApiserverV1ApiCreatePriorityLevelConfigurationRequest, type FlowcontrolApiserverV1ApiDeleteCollectionFlowSchemaRequest, type FlowcontrolApiserverV1ApiDeleteCollectionPriorityLevelConfigurationRequest, type FlowcontrolApiserverV1ApiDeleteFlowSchemaRequest, type FlowcontrolApiserverV1ApiDeletePriorityLevelConfigurationRequest, type FlowcontrolApiserverV1ApiGetAPIResourcesRequest, type FlowcontrolApiserverV1ApiListFlowSchemaRequest, type FlowcontrolApiserverV1ApiListPriorityLevelConfigurationRequest, type FlowcontrolApiserverV1ApiPatchFlowSchemaRequest, type FlowcontrolApiserverV1ApiPatchFlowSchemaStatusRequest, type FlowcontrolApiserverV1ApiPatchPriorityLevelConfigurationRequest, type FlowcontrolApiserverV1ApiPatchPriorityLevelConfigurationStatusRequest, type FlowcontrolApiserverV1ApiReadFlowSchemaRequest, type FlowcontrolApiserverV1ApiReadFlowSchemaStatusRequest, type FlowcontrolApiserverV1ApiReadPriorityLevelConfigurationRequest, type FlowcontrolApiserverV1ApiReadPriorityLevelConfigurationStatusRequest, type FlowcontrolApiserverV1ApiReplaceFlowSchemaRequest, type FlowcontrolApiserverV1ApiReplaceFlowSchemaStatusRequest, type FlowcontrolApiserverV1ApiReplacePriorityLevelConfigurationRequest, type FlowcontrolApiserverV1ApiReplacePriorityLevelConfigurationStatusRequest, ObjectFlowcontrolApiserverV1Api as FlowcontrolApiserverV1Api, type InternalApiserverApiGetAPIGroupRequest, ObjectInternalApiserverApi as InternalApiserverApi, type InternalApiserverV1alpha1ApiCreateStorageVersionRequest, type InternalApiserverV1alpha1ApiDeleteCollectionStorageVersionRequest, type InternalApiserverV1alpha1ApiDeleteStorageVersionRequest, type InternalApiserverV1alpha1ApiGetAPIResourcesRequest, type InternalApiserverV1alpha1ApiListStorageVersionRequest, type InternalApiserverV1alpha1ApiPatchStorageVersionRequest, type InternalApiserverV1alpha1ApiPatchStorageVersionStatusRequest, type InternalApiserverV1alpha1ApiReadStorageVersionRequest, type InternalApiserverV1alpha1ApiReadStorageVersionStatusRequest, type InternalApiserverV1alpha1ApiReplaceStorageVersionRequest, type InternalApiserverV1alpha1ApiReplaceStorageVersionStatusRequest, ObjectInternalApiserverV1alpha1Api as InternalApiserverV1alpha1Api, type LogsApiLogFileHandlerRequest, type LogsApiLogFileListHandlerRequest, ObjectLogsApi as LogsApi, type NetworkingApiGetAPIGroupRequest, ObjectNetworkingApi as NetworkingApi, type NetworkingV1ApiCreateIngressClassRequest, type NetworkingV1ApiCreateNamespacedIngressRequest, type NetworkingV1ApiCreateNamespacedNetworkPolicyRequest, type NetworkingV1ApiDeleteCollectionIngressClassRequest, type NetworkingV1ApiDeleteCollectionNamespacedIngressRequest, type NetworkingV1ApiDeleteCollectionNamespacedNetworkPolicyRequest, type NetworkingV1ApiDeleteIngressClassRequest, type NetworkingV1ApiDeleteNamespacedIngressRequest, type NetworkingV1ApiDeleteNamespacedNetworkPolicyRequest, type NetworkingV1ApiGetAPIResourcesRequest, type NetworkingV1ApiListIngressClassRequest, type NetworkingV1ApiListIngressForAllNamespacesRequest, type NetworkingV1ApiListNamespacedIngressRequest, type NetworkingV1ApiListNamespacedNetworkPolicyRequest, type NetworkingV1ApiListNetworkPolicyForAllNamespacesRequest, type NetworkingV1ApiPatchIngressClassRequest, type NetworkingV1ApiPatchNamespacedIngressRequest, type NetworkingV1ApiPatchNamespacedIngressStatusRequest, type NetworkingV1ApiPatchNamespacedNetworkPolicyRequest, type NetworkingV1ApiReadIngressClassRequest, type NetworkingV1ApiReadNamespacedIngressRequest, type NetworkingV1ApiReadNamespacedIngressStatusRequest, type NetworkingV1ApiReadNamespacedNetworkPolicyRequest, type NetworkingV1ApiReplaceIngressClassRequest, type NetworkingV1ApiReplaceNamespacedIngressRequest, type NetworkingV1ApiReplaceNamespacedIngressStatusRequest, type NetworkingV1ApiReplaceNamespacedNetworkPolicyRequest, ObjectNetworkingV1Api as NetworkingV1Api, type NetworkingV1beta1ApiCreateIPAddressRequest, type NetworkingV1beta1ApiCreateServiceCIDRRequest, type NetworkingV1beta1ApiDeleteCollectionIPAddressRequest, type NetworkingV1beta1ApiDeleteCollectionServiceCIDRRequest, type NetworkingV1beta1ApiDeleteIPAddressRequest, type NetworkingV1beta1ApiDeleteServiceCIDRRequest, type NetworkingV1beta1ApiGetAPIResourcesRequest, type NetworkingV1beta1ApiListIPAddressRequest, type NetworkingV1beta1ApiListServiceCIDRRequest, type NetworkingV1beta1ApiPatchIPAddressRequest, type NetworkingV1beta1ApiPatchServiceCIDRRequest, type NetworkingV1beta1ApiPatchServiceCIDRStatusRequest, type NetworkingV1beta1ApiReadIPAddressRequest, type NetworkingV1beta1ApiReadServiceCIDRRequest, type NetworkingV1beta1ApiReadServiceCIDRStatusRequest, type NetworkingV1beta1ApiReplaceIPAddressRequest, type NetworkingV1beta1ApiReplaceServiceCIDRRequest, type NetworkingV1beta1ApiReplaceServiceCIDRStatusRequest, ObjectNetworkingV1beta1Api as NetworkingV1beta1Api, type NodeApiGetAPIGroupRequest, ObjectNodeApi as NodeApi, type NodeV1ApiCreateRuntimeClassRequest, type NodeV1ApiDeleteCollectionRuntimeClassRequest, type NodeV1ApiDeleteRuntimeClassRequest, type NodeV1ApiGetAPIResourcesRequest, type NodeV1ApiListRuntimeClassRequest, type NodeV1ApiPatchRuntimeClassRequest, type NodeV1ApiReadRuntimeClassRequest, type NodeV1ApiReplaceRuntimeClassRequest, ObjectNodeV1Api as NodeV1Api, type OpenidApiGetServiceAccountIssuerOpenIDKeysetRequest, ObjectOpenidApi as OpenidApi, type PolicyApiGetAPIGroupRequest, ObjectPolicyApi as PolicyApi, type PolicyV1ApiCreateNamespacedPodDisruptionBudgetRequest, type PolicyV1ApiDeleteCollectionNamespacedPodDisruptionBudgetRequest, type PolicyV1ApiDeleteNamespacedPodDisruptionBudgetRequest, type PolicyV1ApiGetAPIResourcesRequest, type PolicyV1ApiListNamespacedPodDisruptionBudgetRequest, type PolicyV1ApiListPodDisruptionBudgetForAllNamespacesRequest, type PolicyV1ApiPatchNamespacedPodDisruptionBudgetRequest, type PolicyV1ApiPatchNamespacedPodDisruptionBudgetStatusRequest, type PolicyV1ApiReadNamespacedPodDisruptionBudgetRequest, type PolicyV1ApiReadNamespacedPodDisruptionBudgetStatusRequest, type PolicyV1ApiReplaceNamespacedPodDisruptionBudgetRequest, type PolicyV1ApiReplaceNamespacedPodDisruptionBudgetStatusRequest, ObjectPolicyV1Api as PolicyV1Api, type RbacAuthorizationApiGetAPIGroupRequest, ObjectRbacAuthorizationApi as RbacAuthorizationApi, type RbacAuthorizationV1ApiCreateClusterRoleRequest, type RbacAuthorizationV1ApiCreateClusterRoleBindingRequest, type RbacAuthorizationV1ApiCreateNamespacedRoleRequest, type RbacAuthorizationV1ApiCreateNamespacedRoleBindingRequest, type RbacAuthorizationV1ApiDeleteClusterRoleRequest, type RbacAuthorizationV1ApiDeleteClusterRoleBindingRequest, type RbacAuthorizationV1ApiDeleteCollectionClusterRoleRequest, type RbacAuthorizationV1ApiDeleteCollectionClusterRoleBindingRequest, type RbacAuthorizationV1ApiDeleteCollectionNamespacedRoleRequest, type RbacAuthorizationV1ApiDeleteCollectionNamespacedRoleBindingRequest, type RbacAuthorizationV1ApiDeleteNamespacedRoleRequest, type RbacAuthorizationV1ApiDeleteNamespacedRoleBindingRequest, type RbacAuthorizationV1ApiGetAPIResourcesRequest, type RbacAuthorizationV1ApiListClusterRoleRequest, type RbacAuthorizationV1ApiListClusterRoleBindingRequest, type RbacAuthorizationV1ApiListNamespacedRoleRequest, type RbacAuthorizationV1ApiListNamespacedRoleBindingRequest, type RbacAuthorizationV1ApiListRoleBindingForAllNamespacesRequest, type RbacAuthorizationV1ApiListRoleForAllNamespacesRequest, type RbacAuthorizationV1ApiPatchClusterRoleRequest, type RbacAuthorizationV1ApiPatchClusterRoleBindingRequest, type RbacAuthorizationV1ApiPatchNamespacedRoleRequest, type RbacAuthorizationV1ApiPatchNamespacedRoleBindingRequest, type RbacAuthorizationV1ApiReadClusterRoleRequest, type RbacAuthorizationV1ApiReadClusterRoleBindingRequest, type RbacAuthorizationV1ApiReadNamespacedRoleRequest, type RbacAuthorizationV1ApiReadNamespacedRoleBindingRequest, type RbacAuthorizationV1ApiReplaceClusterRoleRequest, type RbacAuthorizationV1ApiReplaceClusterRoleBindingRequest, type RbacAuthorizationV1ApiReplaceNamespacedRoleRequest, type RbacAuthorizationV1ApiReplaceNamespacedRoleBindingRequest, ObjectRbacAuthorizationV1Api as RbacAuthorizationV1Api, type ResourceApiGetAPIGroupRequest, ObjectResourceApi as ResourceApi, type ResourceV1alpha3ApiCreateDeviceClassRequest, type ResourceV1alpha3ApiCreateNamespacedResourceClaimRequest, type ResourceV1alpha3ApiCreateNamespacedResourceClaimTemplateRequest, type ResourceV1alpha3ApiCreateResourceSliceRequest, type ResourceV1alpha3ApiDeleteCollectionDeviceClassRequest, type ResourceV1alpha3ApiDeleteCollectionNamespacedResourceClaimRequest, type ResourceV1alpha3ApiDeleteCollectionNamespacedResourceClaimTemplateRequest, type ResourceV1alpha3ApiDeleteCollectionResourceSliceRequest, type ResourceV1alpha3ApiDeleteDeviceClassRequest, type ResourceV1alpha3ApiDeleteNamespacedResourceClaimRequest, type ResourceV1alpha3ApiDeleteNamespacedResourceClaimTemplateRequest, type ResourceV1alpha3ApiDeleteResourceSliceRequest, type ResourceV1alpha3ApiGetAPIResourcesRequest, type ResourceV1alpha3ApiListDeviceClassRequest, type ResourceV1alpha3ApiListNamespacedResourceClaimRequest, type ResourceV1alpha3ApiListNamespacedResourceClaimTemplateRequest, type ResourceV1alpha3ApiListResourceClaimForAllNamespacesRequest, type ResourceV1alpha3ApiListResourceClaimTemplateForAllNamespacesRequest, type ResourceV1alpha3ApiListResourceSliceRequest, type ResourceV1alpha3ApiPatchDeviceClassRequest, type ResourceV1alpha3ApiPatchNamespacedResourceClaimRequest, type ResourceV1alpha3ApiPatchNamespacedResourceClaimStatusRequest, type ResourceV1alpha3ApiPatchNamespacedResourceClaimTemplateRequest, type ResourceV1alpha3ApiPatchResourceSliceRequest, type ResourceV1alpha3ApiReadDeviceClassRequest, type ResourceV1alpha3ApiReadNamespacedResourceClaimRequest, type ResourceV1alpha3ApiReadNamespacedResourceClaimStatusRequest, type ResourceV1alpha3ApiReadNamespacedResourceClaimTemplateRequest, type ResourceV1alpha3ApiReadResourceSliceRequest, type ResourceV1alpha3ApiReplaceDeviceClassRequest, type ResourceV1alpha3ApiReplaceNamespacedResourceClaimRequest, type ResourceV1alpha3ApiReplaceNamespacedResourceClaimStatusRequest, type ResourceV1alpha3ApiReplaceNamespacedResourceClaimTemplateRequest, type ResourceV1alpha3ApiReplaceResourceSliceRequest, ObjectResourceV1alpha3Api as ResourceV1alpha3Api, type ResourceV1beta1ApiCreateDeviceClassRequest, type ResourceV1beta1ApiCreateNamespacedResourceClaimRequest, type ResourceV1beta1ApiCreateNamespacedResourceClaimTemplateRequest, type ResourceV1beta1ApiCreateResourceSliceRequest, type ResourceV1beta1ApiDeleteCollectionDeviceClassRequest, type ResourceV1beta1ApiDeleteCollectionNamespacedResourceClaimRequest, type ResourceV1beta1ApiDeleteCollectionNamespacedResourceClaimTemplateRequest, type ResourceV1beta1ApiDeleteCollectionResourceSliceRequest, type ResourceV1beta1ApiDeleteDeviceClassRequest, type ResourceV1beta1ApiDeleteNamespacedResourceClaimRequest, type ResourceV1beta1ApiDeleteNamespacedResourceClaimTemplateRequest, type ResourceV1beta1ApiDeleteResourceSliceRequest, type ResourceV1beta1ApiGetAPIResourcesRequest, type ResourceV1beta1ApiListDeviceClassRequest, type ResourceV1beta1ApiListNamespacedResourceClaimRequest, type ResourceV1beta1ApiListNamespacedResourceClaimTemplateRequest, type ResourceV1beta1ApiListResourceClaimForAllNamespacesRequest, type ResourceV1beta1ApiListResourceClaimTemplateForAllNamespacesRequest, type ResourceV1beta1ApiListResourceSliceRequest, type ResourceV1beta1ApiPatchDeviceClassRequest, type ResourceV1beta1ApiPatchNamespacedResourceClaimRequest, type ResourceV1beta1ApiPatchNamespacedResourceClaimStatusRequest, type ResourceV1beta1ApiPatchNamespacedResourceClaimTemplateRequest, type ResourceV1beta1ApiPatchResourceSliceRequest, type ResourceV1beta1ApiReadDeviceClassRequest, type ResourceV1beta1ApiReadNamespacedResourceClaimRequest, type ResourceV1beta1ApiReadNamespacedResourceClaimStatusRequest, type ResourceV1beta1ApiReadNamespacedResourceClaimTemplateRequest, type ResourceV1beta1ApiReadResourceSliceRequest, type ResourceV1beta1ApiReplaceDeviceClassRequest, type ResourceV1beta1ApiReplaceNamespacedResourceClaimRequest, type ResourceV1beta1ApiReplaceNamespacedResourceClaimStatusRequest, type ResourceV1beta1ApiReplaceNamespacedResourceClaimTemplateRequest, type ResourceV1beta1ApiReplaceResourceSliceRequest, ObjectResourceV1beta1Api as ResourceV1beta1Api, type SchedulingApiGetAPIGroupRequest, ObjectSchedulingApi as SchedulingApi, type SchedulingV1ApiCreatePriorityClassRequest, type SchedulingV1ApiDeleteCollectionPriorityClassRequest, type SchedulingV1ApiDeletePriorityClassRequest, type SchedulingV1ApiGetAPIResourcesRequest, type SchedulingV1ApiListPriorityClassRequest, type SchedulingV1ApiPatchPriorityClassRequest, type SchedulingV1ApiReadPriorityClassRequest, type SchedulingV1ApiReplacePriorityClassRequest, ObjectSchedulingV1Api as SchedulingV1Api, type StorageApiGetAPIGroupRequest, ObjectStorageApi as StorageApi, type StorageV1ApiCreateCSIDriverRequest, type StorageV1ApiCreateCSINodeRequest, type StorageV1ApiCreateNamespacedCSIStorageCapacityRequest, type StorageV1ApiCreateStorageClassRequest, type StorageV1ApiCreateVolumeAttachmentRequest, type StorageV1ApiDeleteCSIDriverRequest, type StorageV1ApiDeleteCSINodeRequest, type StorageV1ApiDeleteCollectionCSIDriverRequest, type StorageV1ApiDeleteCollectionCSINodeRequest, type StorageV1ApiDeleteCollectionNamespacedCSIStorageCapacityRequest, type StorageV1ApiDeleteCollectionStorageClassRequest, type StorageV1ApiDeleteCollectionVolumeAttachmentRequest, type StorageV1ApiDeleteNamespacedCSIStorageCapacityRequest, type StorageV1ApiDeleteStorageClassRequest, type StorageV1ApiDeleteVolumeAttachmentRequest, type StorageV1ApiGetAPIResourcesRequest, type StorageV1ApiListCSIDriverRequest, type StorageV1ApiListCSINodeRequest, type StorageV1ApiListCSIStorageCapacityForAllNamespacesRequest, type StorageV1ApiListNamespacedCSIStorageCapacityRequest, type StorageV1ApiListStorageClassRequest, type StorageV1ApiListVolumeAttachmentRequest, type StorageV1ApiPatchCSIDriverRequest, type StorageV1ApiPatchCSINodeRequest, type StorageV1ApiPatchNamespacedCSIStorageCapacityRequest, type StorageV1ApiPatchStorageClassRequest, type StorageV1ApiPatchVolumeAttachmentRequest, type StorageV1ApiPatchVolumeAttachmentStatusRequest, type StorageV1ApiReadCSIDriverRequest, type StorageV1ApiReadCSINodeRequest, type StorageV1ApiReadNamespacedCSIStorageCapacityRequest, type StorageV1ApiReadStorageClassRequest, type StorageV1ApiReadVolumeAttachmentRequest, type StorageV1ApiReadVolumeAttachmentStatusRequest, type StorageV1ApiReplaceCSIDriverRequest, type StorageV1ApiReplaceCSINodeRequest, type StorageV1ApiReplaceNamespacedCSIStorageCapacityRequest, type StorageV1ApiReplaceStorageClassRequest, type StorageV1ApiReplaceVolumeAttachmentRequest, type StorageV1ApiReplaceVolumeAttachmentStatusRequest, ObjectStorageV1Api as StorageV1Api, type StorageV1alpha1ApiCreateVolumeAttributesClassRequest, type StorageV1alpha1ApiDeleteCollectionVolumeAttributesClassRequest, type StorageV1alpha1ApiDeleteVolumeAttributesClassRequest, type StorageV1alpha1ApiGetAPIResourcesRequest, type StorageV1alpha1ApiListVolumeAttributesClassRequest, type StorageV1alpha1ApiPatchVolumeAttributesClassRequest, type StorageV1alpha1ApiReadVolumeAttributesClassRequest, type StorageV1alpha1ApiReplaceVolumeAttributesClassRequest, ObjectStorageV1alpha1Api as StorageV1alpha1Api, type StorageV1beta1ApiCreateVolumeAttributesClassRequest, type StorageV1beta1ApiDeleteCollectionVolumeAttributesClassRequest, type StorageV1beta1ApiDeleteVolumeAttributesClassRequest, type StorageV1beta1ApiGetAPIResourcesRequest, type StorageV1beta1ApiListVolumeAttributesClassRequest, type StorageV1beta1ApiPatchVolumeAttributesClassRequest, type StorageV1beta1ApiReadVolumeAttributesClassRequest, type StorageV1beta1ApiReplaceVolumeAttributesClassRequest, ObjectStorageV1beta1Api as StorageV1beta1Api, type StoragemigrationApiGetAPIGroupRequest, ObjectStoragemigrationApi as StoragemigrationApi, type StoragemigrationV1alpha1ApiCreateStorageVersionMigrationRequest, type StoragemigrationV1alpha1ApiDeleteCollectionStorageVersionMigrationRequest, type StoragemigrationV1alpha1ApiDeleteStorageVersionMigrationRequest, type StoragemigrationV1alpha1ApiGetAPIResourcesRequest, type StoragemigrationV1alpha1ApiListStorageVersionMigrationRequest, type StoragemigrationV1alpha1ApiPatchStorageVersionMigrationRequest, type StoragemigrationV1alpha1ApiPatchStorageVersionMigrationStatusRequest, type StoragemigrationV1alpha1ApiReadStorageVersionMigrationRequest, type StoragemigrationV1alpha1ApiReadStorageVersionMigrationStatusRequest, type StoragemigrationV1alpha1ApiReplaceStorageVersionMigrationRequest, type StoragemigrationV1alpha1ApiReplaceStorageVersionMigrationStatusRequest, ObjectStoragemigrationV1alpha1Api as StoragemigrationV1alpha1Api, type VersionApiGetCodeRequest, ObjectVersionApi as VersionApi, type WellKnownApiGetServiceAccountIssuerOpenIDConfigurationRequest, ObjectWellKnownApi as WellKnownApi } from './types/ObjectParamAPI.js'; +export type { PromiseMiddleware as Middleware, Middleware as ObservableMiddleware } from './middleware.js'; +export { Observable } from './rxjsStub.js'; +export { type AdmissionregistrationApiGetAPIGroupRequest, ObjectAdmissionregistrationApi as AdmissionregistrationApi, type AdmissionregistrationV1ApiCreateMutatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiCreateValidatingAdmissionPolicyRequest, type AdmissionregistrationV1ApiCreateValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1ApiCreateValidatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiDeleteCollectionMutatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiDeleteCollectionValidatingAdmissionPolicyRequest, type AdmissionregistrationV1ApiDeleteCollectionValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1ApiDeleteCollectionValidatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiDeleteMutatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiDeleteValidatingAdmissionPolicyRequest, type AdmissionregistrationV1ApiDeleteValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1ApiDeleteValidatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiGetAPIResourcesRequest, type AdmissionregistrationV1ApiListMutatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiListValidatingAdmissionPolicyRequest, type AdmissionregistrationV1ApiListValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1ApiListValidatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiPatchMutatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiPatchValidatingAdmissionPolicyRequest, type AdmissionregistrationV1ApiPatchValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1ApiPatchValidatingAdmissionPolicyStatusRequest, type AdmissionregistrationV1ApiPatchValidatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiReadMutatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiReadValidatingAdmissionPolicyRequest, type AdmissionregistrationV1ApiReadValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1ApiReadValidatingAdmissionPolicyStatusRequest, type AdmissionregistrationV1ApiReadValidatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiReplaceMutatingWebhookConfigurationRequest, type AdmissionregistrationV1ApiReplaceValidatingAdmissionPolicyRequest, type AdmissionregistrationV1ApiReplaceValidatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1ApiReplaceValidatingAdmissionPolicyStatusRequest, type AdmissionregistrationV1ApiReplaceValidatingWebhookConfigurationRequest, ObjectAdmissionregistrationV1Api as AdmissionregistrationV1Api, type AdmissionregistrationV1alpha1ApiCreateMutatingAdmissionPolicyRequest, type AdmissionregistrationV1alpha1ApiCreateMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1alpha1ApiDeleteCollectionMutatingAdmissionPolicyRequest, type AdmissionregistrationV1alpha1ApiDeleteCollectionMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1alpha1ApiDeleteMutatingAdmissionPolicyRequest, type AdmissionregistrationV1alpha1ApiDeleteMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1alpha1ApiGetAPIResourcesRequest, type AdmissionregistrationV1alpha1ApiListMutatingAdmissionPolicyRequest, type AdmissionregistrationV1alpha1ApiListMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1alpha1ApiPatchMutatingAdmissionPolicyRequest, type AdmissionregistrationV1alpha1ApiPatchMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1alpha1ApiReadMutatingAdmissionPolicyRequest, type AdmissionregistrationV1alpha1ApiReadMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1alpha1ApiReplaceMutatingAdmissionPolicyRequest, type AdmissionregistrationV1alpha1ApiReplaceMutatingAdmissionPolicyBindingRequest, ObjectAdmissionregistrationV1alpha1Api as AdmissionregistrationV1alpha1Api, type AdmissionregistrationV1beta1ApiCreateMutatingAdmissionPolicyRequest, type AdmissionregistrationV1beta1ApiCreateMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1beta1ApiDeleteCollectionMutatingAdmissionPolicyRequest, type AdmissionregistrationV1beta1ApiDeleteCollectionMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1beta1ApiDeleteMutatingAdmissionPolicyRequest, type AdmissionregistrationV1beta1ApiDeleteMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1beta1ApiGetAPIResourcesRequest, type AdmissionregistrationV1beta1ApiListMutatingAdmissionPolicyRequest, type AdmissionregistrationV1beta1ApiListMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1beta1ApiPatchMutatingAdmissionPolicyRequest, type AdmissionregistrationV1beta1ApiPatchMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1beta1ApiReadMutatingAdmissionPolicyRequest, type AdmissionregistrationV1beta1ApiReadMutatingAdmissionPolicyBindingRequest, type AdmissionregistrationV1beta1ApiReplaceMutatingAdmissionPolicyRequest, type AdmissionregistrationV1beta1ApiReplaceMutatingAdmissionPolicyBindingRequest, ObjectAdmissionregistrationV1beta1Api as AdmissionregistrationV1beta1Api, type ApiextensionsApiGetAPIGroupRequest, ObjectApiextensionsApi as ApiextensionsApi, type ApiextensionsV1ApiCreateCustomResourceDefinitionRequest, type ApiextensionsV1ApiDeleteCollectionCustomResourceDefinitionRequest, type ApiextensionsV1ApiDeleteCustomResourceDefinitionRequest, type ApiextensionsV1ApiGetAPIResourcesRequest, type ApiextensionsV1ApiListCustomResourceDefinitionRequest, type ApiextensionsV1ApiPatchCustomResourceDefinitionRequest, type ApiextensionsV1ApiPatchCustomResourceDefinitionStatusRequest, type ApiextensionsV1ApiReadCustomResourceDefinitionRequest, type ApiextensionsV1ApiReadCustomResourceDefinitionStatusRequest, type ApiextensionsV1ApiReplaceCustomResourceDefinitionRequest, type ApiextensionsV1ApiReplaceCustomResourceDefinitionStatusRequest, ObjectApiextensionsV1Api as ApiextensionsV1Api, type ApiregistrationApiGetAPIGroupRequest, ObjectApiregistrationApi as ApiregistrationApi, type ApiregistrationV1ApiCreateAPIServiceRequest, type ApiregistrationV1ApiDeleteAPIServiceRequest, type ApiregistrationV1ApiDeleteCollectionAPIServiceRequest, type ApiregistrationV1ApiGetAPIResourcesRequest, type ApiregistrationV1ApiListAPIServiceRequest, type ApiregistrationV1ApiPatchAPIServiceRequest, type ApiregistrationV1ApiPatchAPIServiceStatusRequest, type ApiregistrationV1ApiReadAPIServiceRequest, type ApiregistrationV1ApiReadAPIServiceStatusRequest, type ApiregistrationV1ApiReplaceAPIServiceRequest, type ApiregistrationV1ApiReplaceAPIServiceStatusRequest, ObjectApiregistrationV1Api as ApiregistrationV1Api, type ApisApiGetAPIVersionsRequest, ObjectApisApi as ApisApi, type AppsApiGetAPIGroupRequest, ObjectAppsApi as AppsApi, type AppsV1ApiCreateNamespacedControllerRevisionRequest, type AppsV1ApiCreateNamespacedDaemonSetRequest, type AppsV1ApiCreateNamespacedDeploymentRequest, type AppsV1ApiCreateNamespacedReplicaSetRequest, type AppsV1ApiCreateNamespacedStatefulSetRequest, type AppsV1ApiDeleteCollectionNamespacedControllerRevisionRequest, type AppsV1ApiDeleteCollectionNamespacedDaemonSetRequest, type AppsV1ApiDeleteCollectionNamespacedDeploymentRequest, type AppsV1ApiDeleteCollectionNamespacedReplicaSetRequest, type AppsV1ApiDeleteCollectionNamespacedStatefulSetRequest, type AppsV1ApiDeleteNamespacedControllerRevisionRequest, type AppsV1ApiDeleteNamespacedDaemonSetRequest, type AppsV1ApiDeleteNamespacedDeploymentRequest, type AppsV1ApiDeleteNamespacedReplicaSetRequest, type AppsV1ApiDeleteNamespacedStatefulSetRequest, type AppsV1ApiGetAPIResourcesRequest, type AppsV1ApiListControllerRevisionForAllNamespacesRequest, type AppsV1ApiListDaemonSetForAllNamespacesRequest, type AppsV1ApiListDeploymentForAllNamespacesRequest, type AppsV1ApiListNamespacedControllerRevisionRequest, type AppsV1ApiListNamespacedDaemonSetRequest, type AppsV1ApiListNamespacedDeploymentRequest, type AppsV1ApiListNamespacedReplicaSetRequest, type AppsV1ApiListNamespacedStatefulSetRequest, type AppsV1ApiListReplicaSetForAllNamespacesRequest, type AppsV1ApiListStatefulSetForAllNamespacesRequest, type AppsV1ApiPatchNamespacedControllerRevisionRequest, type AppsV1ApiPatchNamespacedDaemonSetRequest, type AppsV1ApiPatchNamespacedDaemonSetStatusRequest, type AppsV1ApiPatchNamespacedDeploymentRequest, type AppsV1ApiPatchNamespacedDeploymentScaleRequest, type AppsV1ApiPatchNamespacedDeploymentStatusRequest, type AppsV1ApiPatchNamespacedReplicaSetRequest, type AppsV1ApiPatchNamespacedReplicaSetScaleRequest, type AppsV1ApiPatchNamespacedReplicaSetStatusRequest, type AppsV1ApiPatchNamespacedStatefulSetRequest, type AppsV1ApiPatchNamespacedStatefulSetScaleRequest, type AppsV1ApiPatchNamespacedStatefulSetStatusRequest, type AppsV1ApiReadNamespacedControllerRevisionRequest, type AppsV1ApiReadNamespacedDaemonSetRequest, type AppsV1ApiReadNamespacedDaemonSetStatusRequest, type AppsV1ApiReadNamespacedDeploymentRequest, type AppsV1ApiReadNamespacedDeploymentScaleRequest, type AppsV1ApiReadNamespacedDeploymentStatusRequest, type AppsV1ApiReadNamespacedReplicaSetRequest, type AppsV1ApiReadNamespacedReplicaSetScaleRequest, type AppsV1ApiReadNamespacedReplicaSetStatusRequest, type AppsV1ApiReadNamespacedStatefulSetRequest, type AppsV1ApiReadNamespacedStatefulSetScaleRequest, type AppsV1ApiReadNamespacedStatefulSetStatusRequest, type AppsV1ApiReplaceNamespacedControllerRevisionRequest, type AppsV1ApiReplaceNamespacedDaemonSetRequest, type AppsV1ApiReplaceNamespacedDaemonSetStatusRequest, type AppsV1ApiReplaceNamespacedDeploymentRequest, type AppsV1ApiReplaceNamespacedDeploymentScaleRequest, type AppsV1ApiReplaceNamespacedDeploymentStatusRequest, type AppsV1ApiReplaceNamespacedReplicaSetRequest, type AppsV1ApiReplaceNamespacedReplicaSetScaleRequest, type AppsV1ApiReplaceNamespacedReplicaSetStatusRequest, type AppsV1ApiReplaceNamespacedStatefulSetRequest, type AppsV1ApiReplaceNamespacedStatefulSetScaleRequest, type AppsV1ApiReplaceNamespacedStatefulSetStatusRequest, ObjectAppsV1Api as AppsV1Api, type AuthenticationApiGetAPIGroupRequest, ObjectAuthenticationApi as AuthenticationApi, type AuthenticationV1ApiCreateSelfSubjectReviewRequest, type AuthenticationV1ApiCreateTokenReviewRequest, type AuthenticationV1ApiGetAPIResourcesRequest, ObjectAuthenticationV1Api as AuthenticationV1Api, type AuthorizationApiGetAPIGroupRequest, ObjectAuthorizationApi as AuthorizationApi, type AuthorizationV1ApiCreateNamespacedLocalSubjectAccessReviewRequest, type AuthorizationV1ApiCreateSelfSubjectAccessReviewRequest, type AuthorizationV1ApiCreateSelfSubjectRulesReviewRequest, type AuthorizationV1ApiCreateSubjectAccessReviewRequest, type AuthorizationV1ApiGetAPIResourcesRequest, ObjectAuthorizationV1Api as AuthorizationV1Api, type AutoscalingApiGetAPIGroupRequest, ObjectAutoscalingApi as AutoscalingApi, type AutoscalingV1ApiCreateNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV1ApiDeleteCollectionNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV1ApiDeleteNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV1ApiGetAPIResourcesRequest, type AutoscalingV1ApiListHorizontalPodAutoscalerForAllNamespacesRequest, type AutoscalingV1ApiListNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV1ApiPatchNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV1ApiPatchNamespacedHorizontalPodAutoscalerStatusRequest, type AutoscalingV1ApiReadNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV1ApiReadNamespacedHorizontalPodAutoscalerStatusRequest, type AutoscalingV1ApiReplaceNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV1ApiReplaceNamespacedHorizontalPodAutoscalerStatusRequest, ObjectAutoscalingV1Api as AutoscalingV1Api, type AutoscalingV2ApiCreateNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV2ApiDeleteCollectionNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV2ApiDeleteNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV2ApiGetAPIResourcesRequest, type AutoscalingV2ApiListHorizontalPodAutoscalerForAllNamespacesRequest, type AutoscalingV2ApiListNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV2ApiPatchNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV2ApiPatchNamespacedHorizontalPodAutoscalerStatusRequest, type AutoscalingV2ApiReadNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV2ApiReadNamespacedHorizontalPodAutoscalerStatusRequest, type AutoscalingV2ApiReplaceNamespacedHorizontalPodAutoscalerRequest, type AutoscalingV2ApiReplaceNamespacedHorizontalPodAutoscalerStatusRequest, ObjectAutoscalingV2Api as AutoscalingV2Api, type BatchApiGetAPIGroupRequest, ObjectBatchApi as BatchApi, type BatchV1ApiCreateNamespacedCronJobRequest, type BatchV1ApiCreateNamespacedJobRequest, type BatchV1ApiDeleteCollectionNamespacedCronJobRequest, type BatchV1ApiDeleteCollectionNamespacedJobRequest, type BatchV1ApiDeleteNamespacedCronJobRequest, type BatchV1ApiDeleteNamespacedJobRequest, type BatchV1ApiGetAPIResourcesRequest, type BatchV1ApiListCronJobForAllNamespacesRequest, type BatchV1ApiListJobForAllNamespacesRequest, type BatchV1ApiListNamespacedCronJobRequest, type BatchV1ApiListNamespacedJobRequest, type BatchV1ApiPatchNamespacedCronJobRequest, type BatchV1ApiPatchNamespacedCronJobStatusRequest, type BatchV1ApiPatchNamespacedJobRequest, type BatchV1ApiPatchNamespacedJobStatusRequest, type BatchV1ApiReadNamespacedCronJobRequest, type BatchV1ApiReadNamespacedCronJobStatusRequest, type BatchV1ApiReadNamespacedJobRequest, type BatchV1ApiReadNamespacedJobStatusRequest, type BatchV1ApiReplaceNamespacedCronJobRequest, type BatchV1ApiReplaceNamespacedCronJobStatusRequest, type BatchV1ApiReplaceNamespacedJobRequest, type BatchV1ApiReplaceNamespacedJobStatusRequest, ObjectBatchV1Api as BatchV1Api, type CertificatesApiGetAPIGroupRequest, ObjectCertificatesApi as CertificatesApi, type CertificatesV1ApiCreateCertificateSigningRequestRequest, type CertificatesV1ApiDeleteCertificateSigningRequestRequest, type CertificatesV1ApiDeleteCollectionCertificateSigningRequestRequest, type CertificatesV1ApiGetAPIResourcesRequest, type CertificatesV1ApiListCertificateSigningRequestRequest, type CertificatesV1ApiPatchCertificateSigningRequestRequest, type CertificatesV1ApiPatchCertificateSigningRequestApprovalRequest, type CertificatesV1ApiPatchCertificateSigningRequestStatusRequest, type CertificatesV1ApiReadCertificateSigningRequestRequest, type CertificatesV1ApiReadCertificateSigningRequestApprovalRequest, type CertificatesV1ApiReadCertificateSigningRequestStatusRequest, type CertificatesV1ApiReplaceCertificateSigningRequestRequest, type CertificatesV1ApiReplaceCertificateSigningRequestApprovalRequest, type CertificatesV1ApiReplaceCertificateSigningRequestStatusRequest, ObjectCertificatesV1Api as CertificatesV1Api, type CertificatesV1alpha1ApiCreateClusterTrustBundleRequest, type CertificatesV1alpha1ApiCreateNamespacedPodCertificateRequestRequest, type CertificatesV1alpha1ApiDeleteClusterTrustBundleRequest, type CertificatesV1alpha1ApiDeleteCollectionClusterTrustBundleRequest, type CertificatesV1alpha1ApiDeleteCollectionNamespacedPodCertificateRequestRequest, type CertificatesV1alpha1ApiDeleteNamespacedPodCertificateRequestRequest, type CertificatesV1alpha1ApiGetAPIResourcesRequest, type CertificatesV1alpha1ApiListClusterTrustBundleRequest, type CertificatesV1alpha1ApiListNamespacedPodCertificateRequestRequest, type CertificatesV1alpha1ApiListPodCertificateRequestForAllNamespacesRequest, type CertificatesV1alpha1ApiPatchClusterTrustBundleRequest, type CertificatesV1alpha1ApiPatchNamespacedPodCertificateRequestRequest, type CertificatesV1alpha1ApiPatchNamespacedPodCertificateRequestStatusRequest, type CertificatesV1alpha1ApiReadClusterTrustBundleRequest, type CertificatesV1alpha1ApiReadNamespacedPodCertificateRequestRequest, type CertificatesV1alpha1ApiReadNamespacedPodCertificateRequestStatusRequest, type CertificatesV1alpha1ApiReplaceClusterTrustBundleRequest, type CertificatesV1alpha1ApiReplaceNamespacedPodCertificateRequestRequest, type CertificatesV1alpha1ApiReplaceNamespacedPodCertificateRequestStatusRequest, ObjectCertificatesV1alpha1Api as CertificatesV1alpha1Api, type CertificatesV1beta1ApiCreateClusterTrustBundleRequest, type CertificatesV1beta1ApiDeleteClusterTrustBundleRequest, type CertificatesV1beta1ApiDeleteCollectionClusterTrustBundleRequest, type CertificatesV1beta1ApiGetAPIResourcesRequest, type CertificatesV1beta1ApiListClusterTrustBundleRequest, type CertificatesV1beta1ApiPatchClusterTrustBundleRequest, type CertificatesV1beta1ApiReadClusterTrustBundleRequest, type CertificatesV1beta1ApiReplaceClusterTrustBundleRequest, ObjectCertificatesV1beta1Api as CertificatesV1beta1Api, type CoordinationApiGetAPIGroupRequest, ObjectCoordinationApi as CoordinationApi, type CoordinationV1ApiCreateNamespacedLeaseRequest, type CoordinationV1ApiDeleteCollectionNamespacedLeaseRequest, type CoordinationV1ApiDeleteNamespacedLeaseRequest, type CoordinationV1ApiGetAPIResourcesRequest, type CoordinationV1ApiListLeaseForAllNamespacesRequest, type CoordinationV1ApiListNamespacedLeaseRequest, type CoordinationV1ApiPatchNamespacedLeaseRequest, type CoordinationV1ApiReadNamespacedLeaseRequest, type CoordinationV1ApiReplaceNamespacedLeaseRequest, ObjectCoordinationV1Api as CoordinationV1Api, type CoordinationV1alpha2ApiCreateNamespacedLeaseCandidateRequest, type CoordinationV1alpha2ApiDeleteCollectionNamespacedLeaseCandidateRequest, type CoordinationV1alpha2ApiDeleteNamespacedLeaseCandidateRequest, type CoordinationV1alpha2ApiGetAPIResourcesRequest, type CoordinationV1alpha2ApiListLeaseCandidateForAllNamespacesRequest, type CoordinationV1alpha2ApiListNamespacedLeaseCandidateRequest, type CoordinationV1alpha2ApiPatchNamespacedLeaseCandidateRequest, type CoordinationV1alpha2ApiReadNamespacedLeaseCandidateRequest, type CoordinationV1alpha2ApiReplaceNamespacedLeaseCandidateRequest, ObjectCoordinationV1alpha2Api as CoordinationV1alpha2Api, type CoordinationV1beta1ApiCreateNamespacedLeaseCandidateRequest, type CoordinationV1beta1ApiDeleteCollectionNamespacedLeaseCandidateRequest, type CoordinationV1beta1ApiDeleteNamespacedLeaseCandidateRequest, type CoordinationV1beta1ApiGetAPIResourcesRequest, type CoordinationV1beta1ApiListLeaseCandidateForAllNamespacesRequest, type CoordinationV1beta1ApiListNamespacedLeaseCandidateRequest, type CoordinationV1beta1ApiPatchNamespacedLeaseCandidateRequest, type CoordinationV1beta1ApiReadNamespacedLeaseCandidateRequest, type CoordinationV1beta1ApiReplaceNamespacedLeaseCandidateRequest, ObjectCoordinationV1beta1Api as CoordinationV1beta1Api, type CoreApiGetAPIVersionsRequest, ObjectCoreApi as CoreApi, type CoreV1ApiConnectDeleteNamespacedPodProxyRequest, type CoreV1ApiConnectDeleteNamespacedPodProxyWithPathRequest, type CoreV1ApiConnectDeleteNamespacedServiceProxyRequest, type CoreV1ApiConnectDeleteNamespacedServiceProxyWithPathRequest, type CoreV1ApiConnectDeleteNodeProxyRequest, type CoreV1ApiConnectDeleteNodeProxyWithPathRequest, type CoreV1ApiConnectGetNamespacedPodAttachRequest, type CoreV1ApiConnectGetNamespacedPodExecRequest, type CoreV1ApiConnectGetNamespacedPodPortforwardRequest, type CoreV1ApiConnectGetNamespacedPodProxyRequest, type CoreV1ApiConnectGetNamespacedPodProxyWithPathRequest, type CoreV1ApiConnectGetNamespacedServiceProxyRequest, type CoreV1ApiConnectGetNamespacedServiceProxyWithPathRequest, type CoreV1ApiConnectGetNodeProxyRequest, type CoreV1ApiConnectGetNodeProxyWithPathRequest, type CoreV1ApiConnectHeadNamespacedPodProxyRequest, type CoreV1ApiConnectHeadNamespacedPodProxyWithPathRequest, type CoreV1ApiConnectHeadNamespacedServiceProxyRequest, type CoreV1ApiConnectHeadNamespacedServiceProxyWithPathRequest, type CoreV1ApiConnectHeadNodeProxyRequest, type CoreV1ApiConnectHeadNodeProxyWithPathRequest, type CoreV1ApiConnectOptionsNamespacedPodProxyRequest, type CoreV1ApiConnectOptionsNamespacedPodProxyWithPathRequest, type CoreV1ApiConnectOptionsNamespacedServiceProxyRequest, type CoreV1ApiConnectOptionsNamespacedServiceProxyWithPathRequest, type CoreV1ApiConnectOptionsNodeProxyRequest, type CoreV1ApiConnectOptionsNodeProxyWithPathRequest, type CoreV1ApiConnectPatchNamespacedPodProxyRequest, type CoreV1ApiConnectPatchNamespacedPodProxyWithPathRequest, type CoreV1ApiConnectPatchNamespacedServiceProxyRequest, type CoreV1ApiConnectPatchNamespacedServiceProxyWithPathRequest, type CoreV1ApiConnectPatchNodeProxyRequest, type CoreV1ApiConnectPatchNodeProxyWithPathRequest, type CoreV1ApiConnectPostNamespacedPodAttachRequest, type CoreV1ApiConnectPostNamespacedPodExecRequest, type CoreV1ApiConnectPostNamespacedPodPortforwardRequest, type CoreV1ApiConnectPostNamespacedPodProxyRequest, type CoreV1ApiConnectPostNamespacedPodProxyWithPathRequest, type CoreV1ApiConnectPostNamespacedServiceProxyRequest, type CoreV1ApiConnectPostNamespacedServiceProxyWithPathRequest, type CoreV1ApiConnectPostNodeProxyRequest, type CoreV1ApiConnectPostNodeProxyWithPathRequest, type CoreV1ApiConnectPutNamespacedPodProxyRequest, type CoreV1ApiConnectPutNamespacedPodProxyWithPathRequest, type CoreV1ApiConnectPutNamespacedServiceProxyRequest, type CoreV1ApiConnectPutNamespacedServiceProxyWithPathRequest, type CoreV1ApiConnectPutNodeProxyRequest, type CoreV1ApiConnectPutNodeProxyWithPathRequest, type CoreV1ApiCreateNamespaceRequest, type CoreV1ApiCreateNamespacedBindingRequest, type CoreV1ApiCreateNamespacedConfigMapRequest, type CoreV1ApiCreateNamespacedEndpointsRequest, type CoreV1ApiCreateNamespacedEventRequest, type CoreV1ApiCreateNamespacedLimitRangeRequest, type CoreV1ApiCreateNamespacedPersistentVolumeClaimRequest, type CoreV1ApiCreateNamespacedPodRequest, type CoreV1ApiCreateNamespacedPodBindingRequest, type CoreV1ApiCreateNamespacedPodEvictionRequest, type CoreV1ApiCreateNamespacedPodTemplateRequest, type CoreV1ApiCreateNamespacedReplicationControllerRequest, type CoreV1ApiCreateNamespacedResourceQuotaRequest, type CoreV1ApiCreateNamespacedSecretRequest, type CoreV1ApiCreateNamespacedServiceRequest, type CoreV1ApiCreateNamespacedServiceAccountRequest, type CoreV1ApiCreateNamespacedServiceAccountTokenRequest, type CoreV1ApiCreateNodeRequest, type CoreV1ApiCreatePersistentVolumeRequest, type CoreV1ApiDeleteCollectionNamespacedConfigMapRequest, type CoreV1ApiDeleteCollectionNamespacedEndpointsRequest, type CoreV1ApiDeleteCollectionNamespacedEventRequest, type CoreV1ApiDeleteCollectionNamespacedLimitRangeRequest, type CoreV1ApiDeleteCollectionNamespacedPersistentVolumeClaimRequest, type CoreV1ApiDeleteCollectionNamespacedPodRequest, type CoreV1ApiDeleteCollectionNamespacedPodTemplateRequest, type CoreV1ApiDeleteCollectionNamespacedReplicationControllerRequest, type CoreV1ApiDeleteCollectionNamespacedResourceQuotaRequest, type CoreV1ApiDeleteCollectionNamespacedSecretRequest, type CoreV1ApiDeleteCollectionNamespacedServiceRequest, type CoreV1ApiDeleteCollectionNamespacedServiceAccountRequest, type CoreV1ApiDeleteCollectionNodeRequest, type CoreV1ApiDeleteCollectionPersistentVolumeRequest, type CoreV1ApiDeleteNamespaceRequest, type CoreV1ApiDeleteNamespacedConfigMapRequest, type CoreV1ApiDeleteNamespacedEndpointsRequest, type CoreV1ApiDeleteNamespacedEventRequest, type CoreV1ApiDeleteNamespacedLimitRangeRequest, type CoreV1ApiDeleteNamespacedPersistentVolumeClaimRequest, type CoreV1ApiDeleteNamespacedPodRequest, type CoreV1ApiDeleteNamespacedPodTemplateRequest, type CoreV1ApiDeleteNamespacedReplicationControllerRequest, type CoreV1ApiDeleteNamespacedResourceQuotaRequest, type CoreV1ApiDeleteNamespacedSecretRequest, type CoreV1ApiDeleteNamespacedServiceRequest, type CoreV1ApiDeleteNamespacedServiceAccountRequest, type CoreV1ApiDeleteNodeRequest, type CoreV1ApiDeletePersistentVolumeRequest, type CoreV1ApiGetAPIResourcesRequest, type CoreV1ApiListComponentStatusRequest, type CoreV1ApiListConfigMapForAllNamespacesRequest, type CoreV1ApiListEndpointsForAllNamespacesRequest, type CoreV1ApiListEventForAllNamespacesRequest, type CoreV1ApiListLimitRangeForAllNamespacesRequest, type CoreV1ApiListNamespaceRequest, type CoreV1ApiListNamespacedConfigMapRequest, type CoreV1ApiListNamespacedEndpointsRequest, type CoreV1ApiListNamespacedEventRequest, type CoreV1ApiListNamespacedLimitRangeRequest, type CoreV1ApiListNamespacedPersistentVolumeClaimRequest, type CoreV1ApiListNamespacedPodRequest, type CoreV1ApiListNamespacedPodTemplateRequest, type CoreV1ApiListNamespacedReplicationControllerRequest, type CoreV1ApiListNamespacedResourceQuotaRequest, type CoreV1ApiListNamespacedSecretRequest, type CoreV1ApiListNamespacedServiceRequest, type CoreV1ApiListNamespacedServiceAccountRequest, type CoreV1ApiListNodeRequest, type CoreV1ApiListPersistentVolumeRequest, type CoreV1ApiListPersistentVolumeClaimForAllNamespacesRequest, type CoreV1ApiListPodForAllNamespacesRequest, type CoreV1ApiListPodTemplateForAllNamespacesRequest, type CoreV1ApiListReplicationControllerForAllNamespacesRequest, type CoreV1ApiListResourceQuotaForAllNamespacesRequest, type CoreV1ApiListSecretForAllNamespacesRequest, type CoreV1ApiListServiceAccountForAllNamespacesRequest, type CoreV1ApiListServiceForAllNamespacesRequest, type CoreV1ApiPatchNamespaceRequest, type CoreV1ApiPatchNamespaceStatusRequest, type CoreV1ApiPatchNamespacedConfigMapRequest, type CoreV1ApiPatchNamespacedEndpointsRequest, type CoreV1ApiPatchNamespacedEventRequest, type CoreV1ApiPatchNamespacedLimitRangeRequest, type CoreV1ApiPatchNamespacedPersistentVolumeClaimRequest, type CoreV1ApiPatchNamespacedPersistentVolumeClaimStatusRequest, type CoreV1ApiPatchNamespacedPodRequest, type CoreV1ApiPatchNamespacedPodEphemeralcontainersRequest, type CoreV1ApiPatchNamespacedPodResizeRequest, type CoreV1ApiPatchNamespacedPodStatusRequest, type CoreV1ApiPatchNamespacedPodTemplateRequest, type CoreV1ApiPatchNamespacedReplicationControllerRequest, type CoreV1ApiPatchNamespacedReplicationControllerScaleRequest, type CoreV1ApiPatchNamespacedReplicationControllerStatusRequest, type CoreV1ApiPatchNamespacedResourceQuotaRequest, type CoreV1ApiPatchNamespacedResourceQuotaStatusRequest, type CoreV1ApiPatchNamespacedSecretRequest, type CoreV1ApiPatchNamespacedServiceRequest, type CoreV1ApiPatchNamespacedServiceAccountRequest, type CoreV1ApiPatchNamespacedServiceStatusRequest, type CoreV1ApiPatchNodeRequest, type CoreV1ApiPatchNodeStatusRequest, type CoreV1ApiPatchPersistentVolumeRequest, type CoreV1ApiPatchPersistentVolumeStatusRequest, type CoreV1ApiReadComponentStatusRequest, type CoreV1ApiReadNamespaceRequest, type CoreV1ApiReadNamespaceStatusRequest, type CoreV1ApiReadNamespacedConfigMapRequest, type CoreV1ApiReadNamespacedEndpointsRequest, type CoreV1ApiReadNamespacedEventRequest, type CoreV1ApiReadNamespacedLimitRangeRequest, type CoreV1ApiReadNamespacedPersistentVolumeClaimRequest, type CoreV1ApiReadNamespacedPersistentVolumeClaimStatusRequest, type CoreV1ApiReadNamespacedPodRequest, type CoreV1ApiReadNamespacedPodEphemeralcontainersRequest, type CoreV1ApiReadNamespacedPodLogRequest, type CoreV1ApiReadNamespacedPodResizeRequest, type CoreV1ApiReadNamespacedPodStatusRequest, type CoreV1ApiReadNamespacedPodTemplateRequest, type CoreV1ApiReadNamespacedReplicationControllerRequest, type CoreV1ApiReadNamespacedReplicationControllerScaleRequest, type CoreV1ApiReadNamespacedReplicationControllerStatusRequest, type CoreV1ApiReadNamespacedResourceQuotaRequest, type CoreV1ApiReadNamespacedResourceQuotaStatusRequest, type CoreV1ApiReadNamespacedSecretRequest, type CoreV1ApiReadNamespacedServiceRequest, type CoreV1ApiReadNamespacedServiceAccountRequest, type CoreV1ApiReadNamespacedServiceStatusRequest, type CoreV1ApiReadNodeRequest, type CoreV1ApiReadNodeStatusRequest, type CoreV1ApiReadPersistentVolumeRequest, type CoreV1ApiReadPersistentVolumeStatusRequest, type CoreV1ApiReplaceNamespaceRequest, type CoreV1ApiReplaceNamespaceFinalizeRequest, type CoreV1ApiReplaceNamespaceStatusRequest, type CoreV1ApiReplaceNamespacedConfigMapRequest, type CoreV1ApiReplaceNamespacedEndpointsRequest, type CoreV1ApiReplaceNamespacedEventRequest, type CoreV1ApiReplaceNamespacedLimitRangeRequest, type CoreV1ApiReplaceNamespacedPersistentVolumeClaimRequest, type CoreV1ApiReplaceNamespacedPersistentVolumeClaimStatusRequest, type CoreV1ApiReplaceNamespacedPodRequest, type CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest, type CoreV1ApiReplaceNamespacedPodResizeRequest, type CoreV1ApiReplaceNamespacedPodStatusRequest, type CoreV1ApiReplaceNamespacedPodTemplateRequest, type CoreV1ApiReplaceNamespacedReplicationControllerRequest, type CoreV1ApiReplaceNamespacedReplicationControllerScaleRequest, type CoreV1ApiReplaceNamespacedReplicationControllerStatusRequest, type CoreV1ApiReplaceNamespacedResourceQuotaRequest, type CoreV1ApiReplaceNamespacedResourceQuotaStatusRequest, type CoreV1ApiReplaceNamespacedSecretRequest, type CoreV1ApiReplaceNamespacedServiceRequest, type CoreV1ApiReplaceNamespacedServiceAccountRequest, type CoreV1ApiReplaceNamespacedServiceStatusRequest, type CoreV1ApiReplaceNodeRequest, type CoreV1ApiReplaceNodeStatusRequest, type CoreV1ApiReplacePersistentVolumeRequest, type CoreV1ApiReplacePersistentVolumeStatusRequest, ObjectCoreV1Api as CoreV1Api, type CustomObjectsApiCreateClusterCustomObjectRequest, type CustomObjectsApiCreateNamespacedCustomObjectRequest, type CustomObjectsApiDeleteClusterCustomObjectRequest, type CustomObjectsApiDeleteCollectionClusterCustomObjectRequest, type CustomObjectsApiDeleteCollectionNamespacedCustomObjectRequest, type CustomObjectsApiDeleteNamespacedCustomObjectRequest, type CustomObjectsApiGetAPIResourcesRequest, type CustomObjectsApiGetClusterCustomObjectRequest, type CustomObjectsApiGetClusterCustomObjectScaleRequest, type CustomObjectsApiGetClusterCustomObjectStatusRequest, type CustomObjectsApiGetNamespacedCustomObjectRequest, type CustomObjectsApiGetNamespacedCustomObjectScaleRequest, type CustomObjectsApiGetNamespacedCustomObjectStatusRequest, type CustomObjectsApiListClusterCustomObjectRequest, type CustomObjectsApiListCustomObjectForAllNamespacesRequest, type CustomObjectsApiListNamespacedCustomObjectRequest, type CustomObjectsApiPatchClusterCustomObjectRequest, type CustomObjectsApiPatchClusterCustomObjectScaleRequest, type CustomObjectsApiPatchClusterCustomObjectStatusRequest, type CustomObjectsApiPatchNamespacedCustomObjectRequest, type CustomObjectsApiPatchNamespacedCustomObjectScaleRequest, type CustomObjectsApiPatchNamespacedCustomObjectStatusRequest, type CustomObjectsApiReplaceClusterCustomObjectRequest, type CustomObjectsApiReplaceClusterCustomObjectScaleRequest, type CustomObjectsApiReplaceClusterCustomObjectStatusRequest, type CustomObjectsApiReplaceNamespacedCustomObjectRequest, type CustomObjectsApiReplaceNamespacedCustomObjectScaleRequest, type CustomObjectsApiReplaceNamespacedCustomObjectStatusRequest, ObjectCustomObjectsApi as CustomObjectsApi, type DiscoveryApiGetAPIGroupRequest, ObjectDiscoveryApi as DiscoveryApi, type DiscoveryV1ApiCreateNamespacedEndpointSliceRequest, type DiscoveryV1ApiDeleteCollectionNamespacedEndpointSliceRequest, type DiscoveryV1ApiDeleteNamespacedEndpointSliceRequest, type DiscoveryV1ApiGetAPIResourcesRequest, type DiscoveryV1ApiListEndpointSliceForAllNamespacesRequest, type DiscoveryV1ApiListNamespacedEndpointSliceRequest, type DiscoveryV1ApiPatchNamespacedEndpointSliceRequest, type DiscoveryV1ApiReadNamespacedEndpointSliceRequest, type DiscoveryV1ApiReplaceNamespacedEndpointSliceRequest, ObjectDiscoveryV1Api as DiscoveryV1Api, type EventsApiGetAPIGroupRequest, ObjectEventsApi as EventsApi, type EventsV1ApiCreateNamespacedEventRequest, type EventsV1ApiDeleteCollectionNamespacedEventRequest, type EventsV1ApiDeleteNamespacedEventRequest, type EventsV1ApiGetAPIResourcesRequest, type EventsV1ApiListEventForAllNamespacesRequest, type EventsV1ApiListNamespacedEventRequest, type EventsV1ApiPatchNamespacedEventRequest, type EventsV1ApiReadNamespacedEventRequest, type EventsV1ApiReplaceNamespacedEventRequest, ObjectEventsV1Api as EventsV1Api, type FlowcontrolApiserverApiGetAPIGroupRequest, ObjectFlowcontrolApiserverApi as FlowcontrolApiserverApi, type FlowcontrolApiserverV1ApiCreateFlowSchemaRequest, type FlowcontrolApiserverV1ApiCreatePriorityLevelConfigurationRequest, type FlowcontrolApiserverV1ApiDeleteCollectionFlowSchemaRequest, type FlowcontrolApiserverV1ApiDeleteCollectionPriorityLevelConfigurationRequest, type FlowcontrolApiserverV1ApiDeleteFlowSchemaRequest, type FlowcontrolApiserverV1ApiDeletePriorityLevelConfigurationRequest, type FlowcontrolApiserverV1ApiGetAPIResourcesRequest, type FlowcontrolApiserverV1ApiListFlowSchemaRequest, type FlowcontrolApiserverV1ApiListPriorityLevelConfigurationRequest, type FlowcontrolApiserverV1ApiPatchFlowSchemaRequest, type FlowcontrolApiserverV1ApiPatchFlowSchemaStatusRequest, type FlowcontrolApiserverV1ApiPatchPriorityLevelConfigurationRequest, type FlowcontrolApiserverV1ApiPatchPriorityLevelConfigurationStatusRequest, type FlowcontrolApiserverV1ApiReadFlowSchemaRequest, type FlowcontrolApiserverV1ApiReadFlowSchemaStatusRequest, type FlowcontrolApiserverV1ApiReadPriorityLevelConfigurationRequest, type FlowcontrolApiserverV1ApiReadPriorityLevelConfigurationStatusRequest, type FlowcontrolApiserverV1ApiReplaceFlowSchemaRequest, type FlowcontrolApiserverV1ApiReplaceFlowSchemaStatusRequest, type FlowcontrolApiserverV1ApiReplacePriorityLevelConfigurationRequest, type FlowcontrolApiserverV1ApiReplacePriorityLevelConfigurationStatusRequest, ObjectFlowcontrolApiserverV1Api as FlowcontrolApiserverV1Api, type InternalApiserverApiGetAPIGroupRequest, ObjectInternalApiserverApi as InternalApiserverApi, type InternalApiserverV1alpha1ApiCreateStorageVersionRequest, type InternalApiserverV1alpha1ApiDeleteCollectionStorageVersionRequest, type InternalApiserverV1alpha1ApiDeleteStorageVersionRequest, type InternalApiserverV1alpha1ApiGetAPIResourcesRequest, type InternalApiserverV1alpha1ApiListStorageVersionRequest, type InternalApiserverV1alpha1ApiPatchStorageVersionRequest, type InternalApiserverV1alpha1ApiPatchStorageVersionStatusRequest, type InternalApiserverV1alpha1ApiReadStorageVersionRequest, type InternalApiserverV1alpha1ApiReadStorageVersionStatusRequest, type InternalApiserverV1alpha1ApiReplaceStorageVersionRequest, type InternalApiserverV1alpha1ApiReplaceStorageVersionStatusRequest, ObjectInternalApiserverV1alpha1Api as InternalApiserverV1alpha1Api, type LogsApiLogFileHandlerRequest, type LogsApiLogFileListHandlerRequest, ObjectLogsApi as LogsApi, type NetworkingApiGetAPIGroupRequest, ObjectNetworkingApi as NetworkingApi, type NetworkingV1ApiCreateIPAddressRequest, type NetworkingV1ApiCreateIngressClassRequest, type NetworkingV1ApiCreateNamespacedIngressRequest, type NetworkingV1ApiCreateNamespacedNetworkPolicyRequest, type NetworkingV1ApiCreateServiceCIDRRequest, type NetworkingV1ApiDeleteCollectionIPAddressRequest, type NetworkingV1ApiDeleteCollectionIngressClassRequest, type NetworkingV1ApiDeleteCollectionNamespacedIngressRequest, type NetworkingV1ApiDeleteCollectionNamespacedNetworkPolicyRequest, type NetworkingV1ApiDeleteCollectionServiceCIDRRequest, type NetworkingV1ApiDeleteIPAddressRequest, type NetworkingV1ApiDeleteIngressClassRequest, type NetworkingV1ApiDeleteNamespacedIngressRequest, type NetworkingV1ApiDeleteNamespacedNetworkPolicyRequest, type NetworkingV1ApiDeleteServiceCIDRRequest, type NetworkingV1ApiGetAPIResourcesRequest, type NetworkingV1ApiListIPAddressRequest, type NetworkingV1ApiListIngressClassRequest, type NetworkingV1ApiListIngressForAllNamespacesRequest, type NetworkingV1ApiListNamespacedIngressRequest, type NetworkingV1ApiListNamespacedNetworkPolicyRequest, type NetworkingV1ApiListNetworkPolicyForAllNamespacesRequest, type NetworkingV1ApiListServiceCIDRRequest, type NetworkingV1ApiPatchIPAddressRequest, type NetworkingV1ApiPatchIngressClassRequest, type NetworkingV1ApiPatchNamespacedIngressRequest, type NetworkingV1ApiPatchNamespacedIngressStatusRequest, type NetworkingV1ApiPatchNamespacedNetworkPolicyRequest, type NetworkingV1ApiPatchServiceCIDRRequest, type NetworkingV1ApiPatchServiceCIDRStatusRequest, type NetworkingV1ApiReadIPAddressRequest, type NetworkingV1ApiReadIngressClassRequest, type NetworkingV1ApiReadNamespacedIngressRequest, type NetworkingV1ApiReadNamespacedIngressStatusRequest, type NetworkingV1ApiReadNamespacedNetworkPolicyRequest, type NetworkingV1ApiReadServiceCIDRRequest, type NetworkingV1ApiReadServiceCIDRStatusRequest, type NetworkingV1ApiReplaceIPAddressRequest, type NetworkingV1ApiReplaceIngressClassRequest, type NetworkingV1ApiReplaceNamespacedIngressRequest, type NetworkingV1ApiReplaceNamespacedIngressStatusRequest, type NetworkingV1ApiReplaceNamespacedNetworkPolicyRequest, type NetworkingV1ApiReplaceServiceCIDRRequest, type NetworkingV1ApiReplaceServiceCIDRStatusRequest, ObjectNetworkingV1Api as NetworkingV1Api, type NetworkingV1beta1ApiCreateIPAddressRequest, type NetworkingV1beta1ApiCreateServiceCIDRRequest, type NetworkingV1beta1ApiDeleteCollectionIPAddressRequest, type NetworkingV1beta1ApiDeleteCollectionServiceCIDRRequest, type NetworkingV1beta1ApiDeleteIPAddressRequest, type NetworkingV1beta1ApiDeleteServiceCIDRRequest, type NetworkingV1beta1ApiGetAPIResourcesRequest, type NetworkingV1beta1ApiListIPAddressRequest, type NetworkingV1beta1ApiListServiceCIDRRequest, type NetworkingV1beta1ApiPatchIPAddressRequest, type NetworkingV1beta1ApiPatchServiceCIDRRequest, type NetworkingV1beta1ApiPatchServiceCIDRStatusRequest, type NetworkingV1beta1ApiReadIPAddressRequest, type NetworkingV1beta1ApiReadServiceCIDRRequest, type NetworkingV1beta1ApiReadServiceCIDRStatusRequest, type NetworkingV1beta1ApiReplaceIPAddressRequest, type NetworkingV1beta1ApiReplaceServiceCIDRRequest, type NetworkingV1beta1ApiReplaceServiceCIDRStatusRequest, ObjectNetworkingV1beta1Api as NetworkingV1beta1Api, type NodeApiGetAPIGroupRequest, ObjectNodeApi as NodeApi, type NodeV1ApiCreateRuntimeClassRequest, type NodeV1ApiDeleteCollectionRuntimeClassRequest, type NodeV1ApiDeleteRuntimeClassRequest, type NodeV1ApiGetAPIResourcesRequest, type NodeV1ApiListRuntimeClassRequest, type NodeV1ApiPatchRuntimeClassRequest, type NodeV1ApiReadRuntimeClassRequest, type NodeV1ApiReplaceRuntimeClassRequest, ObjectNodeV1Api as NodeV1Api, type OpenidApiGetServiceAccountIssuerOpenIDKeysetRequest, ObjectOpenidApi as OpenidApi, type PolicyApiGetAPIGroupRequest, ObjectPolicyApi as PolicyApi, type PolicyV1ApiCreateNamespacedPodDisruptionBudgetRequest, type PolicyV1ApiDeleteCollectionNamespacedPodDisruptionBudgetRequest, type PolicyV1ApiDeleteNamespacedPodDisruptionBudgetRequest, type PolicyV1ApiGetAPIResourcesRequest, type PolicyV1ApiListNamespacedPodDisruptionBudgetRequest, type PolicyV1ApiListPodDisruptionBudgetForAllNamespacesRequest, type PolicyV1ApiPatchNamespacedPodDisruptionBudgetRequest, type PolicyV1ApiPatchNamespacedPodDisruptionBudgetStatusRequest, type PolicyV1ApiReadNamespacedPodDisruptionBudgetRequest, type PolicyV1ApiReadNamespacedPodDisruptionBudgetStatusRequest, type PolicyV1ApiReplaceNamespacedPodDisruptionBudgetRequest, type PolicyV1ApiReplaceNamespacedPodDisruptionBudgetStatusRequest, ObjectPolicyV1Api as PolicyV1Api, type RbacAuthorizationApiGetAPIGroupRequest, ObjectRbacAuthorizationApi as RbacAuthorizationApi, type RbacAuthorizationV1ApiCreateClusterRoleRequest, type RbacAuthorizationV1ApiCreateClusterRoleBindingRequest, type RbacAuthorizationV1ApiCreateNamespacedRoleRequest, type RbacAuthorizationV1ApiCreateNamespacedRoleBindingRequest, type RbacAuthorizationV1ApiDeleteClusterRoleRequest, type RbacAuthorizationV1ApiDeleteClusterRoleBindingRequest, type RbacAuthorizationV1ApiDeleteCollectionClusterRoleRequest, type RbacAuthorizationV1ApiDeleteCollectionClusterRoleBindingRequest, type RbacAuthorizationV1ApiDeleteCollectionNamespacedRoleRequest, type RbacAuthorizationV1ApiDeleteCollectionNamespacedRoleBindingRequest, type RbacAuthorizationV1ApiDeleteNamespacedRoleRequest, type RbacAuthorizationV1ApiDeleteNamespacedRoleBindingRequest, type RbacAuthorizationV1ApiGetAPIResourcesRequest, type RbacAuthorizationV1ApiListClusterRoleRequest, type RbacAuthorizationV1ApiListClusterRoleBindingRequest, type RbacAuthorizationV1ApiListNamespacedRoleRequest, type RbacAuthorizationV1ApiListNamespacedRoleBindingRequest, type RbacAuthorizationV1ApiListRoleBindingForAllNamespacesRequest, type RbacAuthorizationV1ApiListRoleForAllNamespacesRequest, type RbacAuthorizationV1ApiPatchClusterRoleRequest, type RbacAuthorizationV1ApiPatchClusterRoleBindingRequest, type RbacAuthorizationV1ApiPatchNamespacedRoleRequest, type RbacAuthorizationV1ApiPatchNamespacedRoleBindingRequest, type RbacAuthorizationV1ApiReadClusterRoleRequest, type RbacAuthorizationV1ApiReadClusterRoleBindingRequest, type RbacAuthorizationV1ApiReadNamespacedRoleRequest, type RbacAuthorizationV1ApiReadNamespacedRoleBindingRequest, type RbacAuthorizationV1ApiReplaceClusterRoleRequest, type RbacAuthorizationV1ApiReplaceClusterRoleBindingRequest, type RbacAuthorizationV1ApiReplaceNamespacedRoleRequest, type RbacAuthorizationV1ApiReplaceNamespacedRoleBindingRequest, ObjectRbacAuthorizationV1Api as RbacAuthorizationV1Api, type ResourceApiGetAPIGroupRequest, ObjectResourceApi as ResourceApi, type ResourceV1ApiCreateDeviceClassRequest, type ResourceV1ApiCreateNamespacedResourceClaimRequest, type ResourceV1ApiCreateNamespacedResourceClaimTemplateRequest, type ResourceV1ApiCreateResourceSliceRequest, type ResourceV1ApiDeleteCollectionDeviceClassRequest, type ResourceV1ApiDeleteCollectionNamespacedResourceClaimRequest, type ResourceV1ApiDeleteCollectionNamespacedResourceClaimTemplateRequest, type ResourceV1ApiDeleteCollectionResourceSliceRequest, type ResourceV1ApiDeleteDeviceClassRequest, type ResourceV1ApiDeleteNamespacedResourceClaimRequest, type ResourceV1ApiDeleteNamespacedResourceClaimTemplateRequest, type ResourceV1ApiDeleteResourceSliceRequest, type ResourceV1ApiGetAPIResourcesRequest, type ResourceV1ApiListDeviceClassRequest, type ResourceV1ApiListNamespacedResourceClaimRequest, type ResourceV1ApiListNamespacedResourceClaimTemplateRequest, type ResourceV1ApiListResourceClaimForAllNamespacesRequest, type ResourceV1ApiListResourceClaimTemplateForAllNamespacesRequest, type ResourceV1ApiListResourceSliceRequest, type ResourceV1ApiPatchDeviceClassRequest, type ResourceV1ApiPatchNamespacedResourceClaimRequest, type ResourceV1ApiPatchNamespacedResourceClaimStatusRequest, type ResourceV1ApiPatchNamespacedResourceClaimTemplateRequest, type ResourceV1ApiPatchResourceSliceRequest, type ResourceV1ApiReadDeviceClassRequest, type ResourceV1ApiReadNamespacedResourceClaimRequest, type ResourceV1ApiReadNamespacedResourceClaimStatusRequest, type ResourceV1ApiReadNamespacedResourceClaimTemplateRequest, type ResourceV1ApiReadResourceSliceRequest, type ResourceV1ApiReplaceDeviceClassRequest, type ResourceV1ApiReplaceNamespacedResourceClaimRequest, type ResourceV1ApiReplaceNamespacedResourceClaimStatusRequest, type ResourceV1ApiReplaceNamespacedResourceClaimTemplateRequest, type ResourceV1ApiReplaceResourceSliceRequest, ObjectResourceV1Api as ResourceV1Api, type ResourceV1alpha3ApiCreateDeviceTaintRuleRequest, type ResourceV1alpha3ApiDeleteCollectionDeviceTaintRuleRequest, type ResourceV1alpha3ApiDeleteDeviceTaintRuleRequest, type ResourceV1alpha3ApiGetAPIResourcesRequest, type ResourceV1alpha3ApiListDeviceTaintRuleRequest, type ResourceV1alpha3ApiPatchDeviceTaintRuleRequest, type ResourceV1alpha3ApiReadDeviceTaintRuleRequest, type ResourceV1alpha3ApiReplaceDeviceTaintRuleRequest, ObjectResourceV1alpha3Api as ResourceV1alpha3Api, type ResourceV1beta1ApiCreateDeviceClassRequest, type ResourceV1beta1ApiCreateNamespacedResourceClaimRequest, type ResourceV1beta1ApiCreateNamespacedResourceClaimTemplateRequest, type ResourceV1beta1ApiCreateResourceSliceRequest, type ResourceV1beta1ApiDeleteCollectionDeviceClassRequest, type ResourceV1beta1ApiDeleteCollectionNamespacedResourceClaimRequest, type ResourceV1beta1ApiDeleteCollectionNamespacedResourceClaimTemplateRequest, type ResourceV1beta1ApiDeleteCollectionResourceSliceRequest, type ResourceV1beta1ApiDeleteDeviceClassRequest, type ResourceV1beta1ApiDeleteNamespacedResourceClaimRequest, type ResourceV1beta1ApiDeleteNamespacedResourceClaimTemplateRequest, type ResourceV1beta1ApiDeleteResourceSliceRequest, type ResourceV1beta1ApiGetAPIResourcesRequest, type ResourceV1beta1ApiListDeviceClassRequest, type ResourceV1beta1ApiListNamespacedResourceClaimRequest, type ResourceV1beta1ApiListNamespacedResourceClaimTemplateRequest, type ResourceV1beta1ApiListResourceClaimForAllNamespacesRequest, type ResourceV1beta1ApiListResourceClaimTemplateForAllNamespacesRequest, type ResourceV1beta1ApiListResourceSliceRequest, type ResourceV1beta1ApiPatchDeviceClassRequest, type ResourceV1beta1ApiPatchNamespacedResourceClaimRequest, type ResourceV1beta1ApiPatchNamespacedResourceClaimStatusRequest, type ResourceV1beta1ApiPatchNamespacedResourceClaimTemplateRequest, type ResourceV1beta1ApiPatchResourceSliceRequest, type ResourceV1beta1ApiReadDeviceClassRequest, type ResourceV1beta1ApiReadNamespacedResourceClaimRequest, type ResourceV1beta1ApiReadNamespacedResourceClaimStatusRequest, type ResourceV1beta1ApiReadNamespacedResourceClaimTemplateRequest, type ResourceV1beta1ApiReadResourceSliceRequest, type ResourceV1beta1ApiReplaceDeviceClassRequest, type ResourceV1beta1ApiReplaceNamespacedResourceClaimRequest, type ResourceV1beta1ApiReplaceNamespacedResourceClaimStatusRequest, type ResourceV1beta1ApiReplaceNamespacedResourceClaimTemplateRequest, type ResourceV1beta1ApiReplaceResourceSliceRequest, ObjectResourceV1beta1Api as ResourceV1beta1Api, type ResourceV1beta2ApiCreateDeviceClassRequest, type ResourceV1beta2ApiCreateNamespacedResourceClaimRequest, type ResourceV1beta2ApiCreateNamespacedResourceClaimTemplateRequest, type ResourceV1beta2ApiCreateResourceSliceRequest, type ResourceV1beta2ApiDeleteCollectionDeviceClassRequest, type ResourceV1beta2ApiDeleteCollectionNamespacedResourceClaimRequest, type ResourceV1beta2ApiDeleteCollectionNamespacedResourceClaimTemplateRequest, type ResourceV1beta2ApiDeleteCollectionResourceSliceRequest, type ResourceV1beta2ApiDeleteDeviceClassRequest, type ResourceV1beta2ApiDeleteNamespacedResourceClaimRequest, type ResourceV1beta2ApiDeleteNamespacedResourceClaimTemplateRequest, type ResourceV1beta2ApiDeleteResourceSliceRequest, type ResourceV1beta2ApiGetAPIResourcesRequest, type ResourceV1beta2ApiListDeviceClassRequest, type ResourceV1beta2ApiListNamespacedResourceClaimRequest, type ResourceV1beta2ApiListNamespacedResourceClaimTemplateRequest, type ResourceV1beta2ApiListResourceClaimForAllNamespacesRequest, type ResourceV1beta2ApiListResourceClaimTemplateForAllNamespacesRequest, type ResourceV1beta2ApiListResourceSliceRequest, type ResourceV1beta2ApiPatchDeviceClassRequest, type ResourceV1beta2ApiPatchNamespacedResourceClaimRequest, type ResourceV1beta2ApiPatchNamespacedResourceClaimStatusRequest, type ResourceV1beta2ApiPatchNamespacedResourceClaimTemplateRequest, type ResourceV1beta2ApiPatchResourceSliceRequest, type ResourceV1beta2ApiReadDeviceClassRequest, type ResourceV1beta2ApiReadNamespacedResourceClaimRequest, type ResourceV1beta2ApiReadNamespacedResourceClaimStatusRequest, type ResourceV1beta2ApiReadNamespacedResourceClaimTemplateRequest, type ResourceV1beta2ApiReadResourceSliceRequest, type ResourceV1beta2ApiReplaceDeviceClassRequest, type ResourceV1beta2ApiReplaceNamespacedResourceClaimRequest, type ResourceV1beta2ApiReplaceNamespacedResourceClaimStatusRequest, type ResourceV1beta2ApiReplaceNamespacedResourceClaimTemplateRequest, type ResourceV1beta2ApiReplaceResourceSliceRequest, ObjectResourceV1beta2Api as ResourceV1beta2Api, type SchedulingApiGetAPIGroupRequest, ObjectSchedulingApi as SchedulingApi, type SchedulingV1ApiCreatePriorityClassRequest, type SchedulingV1ApiDeleteCollectionPriorityClassRequest, type SchedulingV1ApiDeletePriorityClassRequest, type SchedulingV1ApiGetAPIResourcesRequest, type SchedulingV1ApiListPriorityClassRequest, type SchedulingV1ApiPatchPriorityClassRequest, type SchedulingV1ApiReadPriorityClassRequest, type SchedulingV1ApiReplacePriorityClassRequest, ObjectSchedulingV1Api as SchedulingV1Api, type StorageApiGetAPIGroupRequest, ObjectStorageApi as StorageApi, type StorageV1ApiCreateCSIDriverRequest, type StorageV1ApiCreateCSINodeRequest, type StorageV1ApiCreateNamespacedCSIStorageCapacityRequest, type StorageV1ApiCreateStorageClassRequest, type StorageV1ApiCreateVolumeAttachmentRequest, type StorageV1ApiCreateVolumeAttributesClassRequest, type StorageV1ApiDeleteCSIDriverRequest, type StorageV1ApiDeleteCSINodeRequest, type StorageV1ApiDeleteCollectionCSIDriverRequest, type StorageV1ApiDeleteCollectionCSINodeRequest, type StorageV1ApiDeleteCollectionNamespacedCSIStorageCapacityRequest, type StorageV1ApiDeleteCollectionStorageClassRequest, type StorageV1ApiDeleteCollectionVolumeAttachmentRequest, type StorageV1ApiDeleteCollectionVolumeAttributesClassRequest, type StorageV1ApiDeleteNamespacedCSIStorageCapacityRequest, type StorageV1ApiDeleteStorageClassRequest, type StorageV1ApiDeleteVolumeAttachmentRequest, type StorageV1ApiDeleteVolumeAttributesClassRequest, type StorageV1ApiGetAPIResourcesRequest, type StorageV1ApiListCSIDriverRequest, type StorageV1ApiListCSINodeRequest, type StorageV1ApiListCSIStorageCapacityForAllNamespacesRequest, type StorageV1ApiListNamespacedCSIStorageCapacityRequest, type StorageV1ApiListStorageClassRequest, type StorageV1ApiListVolumeAttachmentRequest, type StorageV1ApiListVolumeAttributesClassRequest, type StorageV1ApiPatchCSIDriverRequest, type StorageV1ApiPatchCSINodeRequest, type StorageV1ApiPatchNamespacedCSIStorageCapacityRequest, type StorageV1ApiPatchStorageClassRequest, type StorageV1ApiPatchVolumeAttachmentRequest, type StorageV1ApiPatchVolumeAttachmentStatusRequest, type StorageV1ApiPatchVolumeAttributesClassRequest, type StorageV1ApiReadCSIDriverRequest, type StorageV1ApiReadCSINodeRequest, type StorageV1ApiReadNamespacedCSIStorageCapacityRequest, type StorageV1ApiReadStorageClassRequest, type StorageV1ApiReadVolumeAttachmentRequest, type StorageV1ApiReadVolumeAttachmentStatusRequest, type StorageV1ApiReadVolumeAttributesClassRequest, type StorageV1ApiReplaceCSIDriverRequest, type StorageV1ApiReplaceCSINodeRequest, type StorageV1ApiReplaceNamespacedCSIStorageCapacityRequest, type StorageV1ApiReplaceStorageClassRequest, type StorageV1ApiReplaceVolumeAttachmentRequest, type StorageV1ApiReplaceVolumeAttachmentStatusRequest, type StorageV1ApiReplaceVolumeAttributesClassRequest, ObjectStorageV1Api as StorageV1Api, type StorageV1alpha1ApiCreateVolumeAttributesClassRequest, type StorageV1alpha1ApiDeleteCollectionVolumeAttributesClassRequest, type StorageV1alpha1ApiDeleteVolumeAttributesClassRequest, type StorageV1alpha1ApiGetAPIResourcesRequest, type StorageV1alpha1ApiListVolumeAttributesClassRequest, type StorageV1alpha1ApiPatchVolumeAttributesClassRequest, type StorageV1alpha1ApiReadVolumeAttributesClassRequest, type StorageV1alpha1ApiReplaceVolumeAttributesClassRequest, ObjectStorageV1alpha1Api as StorageV1alpha1Api, type StorageV1beta1ApiCreateVolumeAttributesClassRequest, type StorageV1beta1ApiDeleteCollectionVolumeAttributesClassRequest, type StorageV1beta1ApiDeleteVolumeAttributesClassRequest, type StorageV1beta1ApiGetAPIResourcesRequest, type StorageV1beta1ApiListVolumeAttributesClassRequest, type StorageV1beta1ApiPatchVolumeAttributesClassRequest, type StorageV1beta1ApiReadVolumeAttributesClassRequest, type StorageV1beta1ApiReplaceVolumeAttributesClassRequest, ObjectStorageV1beta1Api as StorageV1beta1Api, type StoragemigrationApiGetAPIGroupRequest, ObjectStoragemigrationApi as StoragemigrationApi, type StoragemigrationV1alpha1ApiCreateStorageVersionMigrationRequest, type StoragemigrationV1alpha1ApiDeleteCollectionStorageVersionMigrationRequest, type StoragemigrationV1alpha1ApiDeleteStorageVersionMigrationRequest, type StoragemigrationV1alpha1ApiGetAPIResourcesRequest, type StoragemigrationV1alpha1ApiListStorageVersionMigrationRequest, type StoragemigrationV1alpha1ApiPatchStorageVersionMigrationRequest, type StoragemigrationV1alpha1ApiPatchStorageVersionMigrationStatusRequest, type StoragemigrationV1alpha1ApiReadStorageVersionMigrationRequest, type StoragemigrationV1alpha1ApiReadStorageVersionMigrationStatusRequest, type StoragemigrationV1alpha1ApiReplaceStorageVersionMigrationRequest, type StoragemigrationV1alpha1ApiReplaceStorageVersionMigrationStatusRequest, ObjectStoragemigrationV1alpha1Api as StoragemigrationV1alpha1Api, type VersionApiGetCodeRequest, ObjectVersionApi as VersionApi, type WellKnownApiGetServiceAccountIssuerOpenIDConfigurationRequest, ObjectWellKnownApi as WellKnownApi } from './types/ObjectParamAPI.js'; diff --git a/src/gen/middleware.ts b/src/gen/middleware.ts index 7dcc60bedc..a123ecf210 100644 --- a/src/gen/middleware.ts +++ b/src/gen/middleware.ts @@ -26,10 +26,7 @@ export interface Middleware { } export class PromiseMiddlewareWrapper implements Middleware { - - public constructor(private middleware: PromiseMiddleware) { - - } + public constructor(private middleware: PromiseMiddleware) {} pre(context: RequestContext): Observable { return from(this.middleware.pre(context)); @@ -38,7 +35,6 @@ export class PromiseMiddlewareWrapper implements Middleware { post(context: ResponseContext): Observable { return from(this.middleware.post(context)); } - } /** diff --git a/src/gen/models/AdmissionregistrationV1ServiceReference.ts b/src/gen/models/AdmissionregistrationV1ServiceReference.ts index 9c96aecd29..24db4d98eb 100644 --- a/src/gen/models/AdmissionregistrationV1ServiceReference.ts +++ b/src/gen/models/AdmissionregistrationV1ServiceReference.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/AdmissionregistrationV1WebhookClientConfig.ts b/src/gen/models/AdmissionregistrationV1WebhookClientConfig.ts index 8f3f1bfd15..d48d13abb7 100644 --- a/src/gen/models/AdmissionregistrationV1WebhookClientConfig.ts +++ b/src/gen/models/AdmissionregistrationV1WebhookClientConfig.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/ApiextensionsV1ServiceReference.ts b/src/gen/models/ApiextensionsV1ServiceReference.ts index 5a11d16dcd..8d1af52d3b 100644 --- a/src/gen/models/ApiextensionsV1ServiceReference.ts +++ b/src/gen/models/ApiextensionsV1ServiceReference.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/ApiextensionsV1WebhookClientConfig.ts b/src/gen/models/ApiextensionsV1WebhookClientConfig.ts index d9c5c8b412..99bbe8577c 100644 --- a/src/gen/models/ApiextensionsV1WebhookClientConfig.ts +++ b/src/gen/models/ApiextensionsV1WebhookClientConfig.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/ApiregistrationV1ServiceReference.ts b/src/gen/models/ApiregistrationV1ServiceReference.ts index 92a3c2e4c6..fa120e8637 100644 --- a/src/gen/models/ApiregistrationV1ServiceReference.ts +++ b/src/gen/models/ApiregistrationV1ServiceReference.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/AuthenticationV1TokenRequest.ts b/src/gen/models/AuthenticationV1TokenRequest.ts index d75cc796df..7228292598 100644 --- a/src/gen/models/AuthenticationV1TokenRequest.ts +++ b/src/gen/models/AuthenticationV1TokenRequest.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/CoreV1EndpointPort.ts b/src/gen/models/CoreV1EndpointPort.ts index fdf3fdc2b2..9725a3c9f9 100644 --- a/src/gen/models/CoreV1EndpointPort.ts +++ b/src/gen/models/CoreV1EndpointPort.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,7 +13,7 @@ import { HttpFile } from '../http/http.js'; /** -* EndpointPort is a tuple that describes a single port. +* EndpointPort is a tuple that describes a single port. Deprecated: This API is deprecated in v1.33+. */ export class CoreV1EndpointPort { /** diff --git a/src/gen/models/CoreV1Event.ts b/src/gen/models/CoreV1Event.ts index 956edc4ba3..3aa6301d02 100644 --- a/src/gen/models/CoreV1Event.ts +++ b/src/gen/models/CoreV1Event.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/CoreV1EventList.ts b/src/gen/models/CoreV1EventList.ts index 87d6f1e4ec..e259c06d95 100644 --- a/src/gen/models/CoreV1EventList.ts +++ b/src/gen/models/CoreV1EventList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/CoreV1EventSeries.ts b/src/gen/models/CoreV1EventSeries.ts index 7792460b11..08cd7e423b 100644 --- a/src/gen/models/CoreV1EventSeries.ts +++ b/src/gen/models/CoreV1EventSeries.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/CoreV1ResourceClaim.ts b/src/gen/models/CoreV1ResourceClaim.ts new file mode 100644 index 0000000000..2efafb722e --- /dev/null +++ b/src/gen/models/CoreV1ResourceClaim.ts @@ -0,0 +1,52 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http.js'; + +/** +* ResourceClaim references one entry in PodSpec.ResourceClaims. +*/ +export class CoreV1ResourceClaim { + /** + * 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. + */ + 'name': string; + /** + * Request is the name chosen for a request in the referenced claim. If empty, everything from the claim is made available, otherwise only the result of this request. + */ + 'request'?: string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "name", + "baseName": "name", + "type": "string", + "format": "" + }, + { + "name": "request", + "baseName": "request", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return CoreV1ResourceClaim.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/DiscoveryV1EndpointPort.ts b/src/gen/models/DiscoveryV1EndpointPort.ts index 215c67b6d2..95a1ad3f4a 100644 --- a/src/gen/models/DiscoveryV1EndpointPort.ts +++ b/src/gen/models/DiscoveryV1EndpointPort.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -25,7 +25,7 @@ export class DiscoveryV1EndpointPort { */ 'name'?: string; /** - * port represents the port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer. + * port represents the port number of the endpoint. If the EndpointSlice is derived from a Kubernetes service, this must be set to the service\'s target port. EndpointSlices used for other purposes may have a nil port. */ 'port'?: number; /** diff --git a/src/gen/models/EventsV1Event.ts b/src/gen/models/EventsV1Event.ts index af665dad47..1d970555bf 100644 --- a/src/gen/models/EventsV1Event.ts +++ b/src/gen/models/EventsV1Event.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/EventsV1EventList.ts b/src/gen/models/EventsV1EventList.ts index 73294186cf..4ac25ac88b 100644 --- a/src/gen/models/EventsV1EventList.ts +++ b/src/gen/models/EventsV1EventList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/EventsV1EventSeries.ts b/src/gen/models/EventsV1EventSeries.ts index 34a3ddddce..f9f96f70ff 100644 --- a/src/gen/models/EventsV1EventSeries.ts +++ b/src/gen/models/EventsV1EventSeries.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/FlowcontrolV1Subject.ts b/src/gen/models/FlowcontrolV1Subject.ts index 409f6c6df8..fe16012bd3 100644 --- a/src/gen/models/FlowcontrolV1Subject.ts +++ b/src/gen/models/FlowcontrolV1Subject.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/ObjectSerializer.ts b/src/gen/models/ObjectSerializer.ts index c7524b2de4..4ce43caedd 100644 --- a/src/gen/models/ObjectSerializer.ts +++ b/src/gen/models/ObjectSerializer.ts @@ -8,12 +8,14 @@ export * from '../models/CoreV1EndpointPort.js'; export * from '../models/CoreV1Event.js'; export * from '../models/CoreV1EventList.js'; export * from '../models/CoreV1EventSeries.js'; +export * from '../models/CoreV1ResourceClaim.js'; export * from '../models/DiscoveryV1EndpointPort.js'; export * from '../models/EventsV1Event.js'; export * from '../models/EventsV1EventList.js'; export * from '../models/EventsV1EventSeries.js'; export * from '../models/FlowcontrolV1Subject.js'; export * from '../models/RbacV1Subject.js'; +export * from '../models/ResourceV1ResourceClaim.js'; export * from '../models/StorageV1TokenRequest.js'; export * from '../models/V1APIGroup.js'; export * from '../models/V1APIGroupList.js'; @@ -28,6 +30,8 @@ export * from '../models/V1APIVersions.js'; export * from '../models/V1AWSElasticBlockStoreVolumeSource.js'; export * from '../models/V1Affinity.js'; export * from '../models/V1AggregationRule.js'; +export * from '../models/V1AllocatedDeviceStatus.js'; +export * from '../models/V1AllocationResult.js'; export * from '../models/V1AppArmorProfile.js'; export * from '../models/V1AttachedVolume.js'; export * from '../models/V1AuditAnnotation.js'; @@ -36,6 +40,7 @@ export * from '../models/V1AzureFilePersistentVolumeSource.js'; export * from '../models/V1AzureFileVolumeSource.js'; export * from '../models/V1Binding.js'; export * from '../models/V1BoundObjectReference.js'; +export * from '../models/V1CELDeviceSelector.js'; export * from '../models/V1CSIDriver.js'; export * from '../models/V1CSIDriverList.js'; export * from '../models/V1CSIDriverSpec.js'; @@ -48,6 +53,9 @@ export * from '../models/V1CSIStorageCapacity.js'; export * from '../models/V1CSIStorageCapacityList.js'; export * from '../models/V1CSIVolumeSource.js'; export * from '../models/V1Capabilities.js'; +export * from '../models/V1CapacityRequestPolicy.js'; +export * from '../models/V1CapacityRequestPolicyRange.js'; +export * from '../models/V1CapacityRequirements.js'; export * from '../models/V1CephFSPersistentVolumeSource.js'; export * from '../models/V1CephFSVolumeSource.js'; export * from '../models/V1CertificateSigningRequest.js'; @@ -75,9 +83,12 @@ export * from '../models/V1ConfigMapNodeConfigSource.js'; export * from '../models/V1ConfigMapProjection.js'; export * from '../models/V1ConfigMapVolumeSource.js'; export * from '../models/V1Container.js'; +export * from '../models/V1ContainerExtendedResourceRequest.js'; export * from '../models/V1ContainerImage.js'; export * from '../models/V1ContainerPort.js'; export * from '../models/V1ContainerResizePolicy.js'; +export * from '../models/V1ContainerRestartRule.js'; +export * from '../models/V1ContainerRestartRuleOnExitCodes.js'; export * from '../models/V1ContainerState.js'; export * from '../models/V1ContainerStateRunning.js'; export * from '../models/V1ContainerStateTerminated.js'; @@ -86,6 +97,8 @@ export * from '../models/V1ContainerStatus.js'; export * from '../models/V1ContainerUser.js'; export * from '../models/V1ControllerRevision.js'; export * from '../models/V1ControllerRevisionList.js'; +export * from '../models/V1Counter.js'; +export * from '../models/V1CounterSet.js'; export * from '../models/V1CronJob.js'; export * from '../models/V1CronJobList.js'; export * from '../models/V1CronJobSpec.js'; @@ -117,6 +130,25 @@ export * from '../models/V1DeploymentList.js'; export * from '../models/V1DeploymentSpec.js'; export * from '../models/V1DeploymentStatus.js'; export * from '../models/V1DeploymentStrategy.js'; +export * from '../models/V1Device.js'; +export * from '../models/V1DeviceAllocationConfiguration.js'; +export * from '../models/V1DeviceAllocationResult.js'; +export * from '../models/V1DeviceAttribute.js'; +export * from '../models/V1DeviceCapacity.js'; +export * from '../models/V1DeviceClaim.js'; +export * from '../models/V1DeviceClaimConfiguration.js'; +export * from '../models/V1DeviceClass.js'; +export * from '../models/V1DeviceClassConfiguration.js'; +export * from '../models/V1DeviceClassList.js'; +export * from '../models/V1DeviceClassSpec.js'; +export * from '../models/V1DeviceConstraint.js'; +export * from '../models/V1DeviceCounterConsumption.js'; +export * from '../models/V1DeviceRequest.js'; +export * from '../models/V1DeviceRequestAllocationResult.js'; +export * from '../models/V1DeviceSelector.js'; +export * from '../models/V1DeviceSubRequest.js'; +export * from '../models/V1DeviceTaint.js'; +export * from '../models/V1DeviceToleration.js'; export * from '../models/V1DownwardAPIProjection.js'; export * from '../models/V1DownwardAPIVolumeFile.js'; export * from '../models/V1DownwardAPIVolumeSource.js'; @@ -137,6 +169,7 @@ export * from '../models/V1EphemeralContainer.js'; export * from '../models/V1EphemeralVolumeSource.js'; export * from '../models/V1EventSource.js'; export * from '../models/V1Eviction.js'; +export * from '../models/V1ExactDeviceRequest.js'; export * from '../models/V1ExecAction.js'; export * from '../models/V1ExemptPriorityLevelConfiguration.js'; export * from '../models/V1ExpressionWarning.js'; @@ -144,6 +177,7 @@ export * from '../models/V1ExternalDocumentation.js'; export * from '../models/V1FCVolumeSource.js'; export * from '../models/V1FieldSelectorAttributes.js'; export * from '../models/V1FieldSelectorRequirement.js'; +export * from '../models/V1FileKeySelector.js'; export * from '../models/V1FlexPersistentVolumeSource.js'; export * from '../models/V1FlexVolumeSource.js'; export * from '../models/V1FlockerVolumeSource.js'; @@ -153,6 +187,7 @@ export * from '../models/V1FlowSchemaCondition.js'; export * from '../models/V1FlowSchemaList.js'; export * from '../models/V1FlowSchemaSpec.js'; export * from '../models/V1FlowSchemaStatus.js'; +export * from '../models/V1ForNode.js'; export * from '../models/V1ForZone.js'; export * from '../models/V1GCEPersistentDiskVolumeSource.js'; export * from '../models/V1GRPCAction.js'; @@ -172,6 +207,9 @@ export * from '../models/V1HorizontalPodAutoscalerStatus.js'; export * from '../models/V1HostAlias.js'; export * from '../models/V1HostIP.js'; export * from '../models/V1HostPathVolumeSource.js'; +export * from '../models/V1IPAddress.js'; +export * from '../models/V1IPAddressList.js'; +export * from '../models/V1IPAddressSpec.js'; export * from '../models/V1IPBlock.js'; export * from '../models/V1ISCSIPersistentVolumeSource.js'; export * from '../models/V1ISCSIVolumeSource.js'; @@ -234,6 +272,7 @@ export * from '../models/V1NamespaceCondition.js'; export * from '../models/V1NamespaceList.js'; export * from '../models/V1NamespaceSpec.js'; export * from '../models/V1NamespaceStatus.js'; +export * from '../models/V1NetworkDeviceData.js'; export * from '../models/V1NetworkPolicy.js'; export * from '../models/V1NetworkPolicyEgressRule.js'; export * from '../models/V1NetworkPolicyIngressRule.js'; @@ -257,6 +296,7 @@ export * from '../models/V1NodeSelectorRequirement.js'; export * from '../models/V1NodeSelectorTerm.js'; export * from '../models/V1NodeSpec.js'; export * from '../models/V1NodeStatus.js'; +export * from '../models/V1NodeSwapStatus.js'; export * from '../models/V1NodeSystemInfo.js'; export * from '../models/V1NonResourceAttributes.js'; export * from '../models/V1NonResourcePolicyRule.js'; @@ -264,10 +304,12 @@ export * from '../models/V1NonResourceRule.js'; export * from '../models/V1ObjectFieldSelector.js'; export * from '../models/V1ObjectMeta.js'; export * from '../models/V1ObjectReference.js'; +export * from '../models/V1OpaqueDeviceConfiguration.js'; export * from '../models/V1Overhead.js'; export * from '../models/V1OwnerReference.js'; export * from '../models/V1ParamKind.js'; export * from '../models/V1ParamRef.js'; +export * from '../models/V1ParentReference.js'; export * from '../models/V1PersistentVolume.js'; export * from '../models/V1PersistentVolumeClaim.js'; export * from '../models/V1PersistentVolumeClaimCondition.js'; @@ -284,6 +326,7 @@ export * from '../models/V1Pod.js'; export * from '../models/V1PodAffinity.js'; export * from '../models/V1PodAffinityTerm.js'; export * from '../models/V1PodAntiAffinity.js'; +export * from '../models/V1PodCertificateProjection.js'; export * from '../models/V1PodCondition.js'; export * from '../models/V1PodDNSConfig.js'; export * from '../models/V1PodDNSConfigOption.js'; @@ -291,6 +334,7 @@ export * from '../models/V1PodDisruptionBudget.js'; export * from '../models/V1PodDisruptionBudgetList.js'; export * from '../models/V1PodDisruptionBudgetSpec.js'; export * from '../models/V1PodDisruptionBudgetStatus.js'; +export * from '../models/V1PodExtendedResourceClaimStatus.js'; export * from '../models/V1PodFailurePolicy.js'; export * from '../models/V1PodFailurePolicyOnExitCodesRequirement.js'; export * from '../models/V1PodFailurePolicyOnPodConditionsPattern.js'; @@ -339,16 +383,26 @@ export * from '../models/V1ReplicationControllerList.js'; export * from '../models/V1ReplicationControllerSpec.js'; export * from '../models/V1ReplicationControllerStatus.js'; export * from '../models/V1ResourceAttributes.js'; -export * from '../models/V1ResourceClaim.js'; +export * from '../models/V1ResourceClaimConsumerReference.js'; +export * from '../models/V1ResourceClaimList.js'; +export * from '../models/V1ResourceClaimSpec.js'; +export * from '../models/V1ResourceClaimStatus.js'; +export * from '../models/V1ResourceClaimTemplate.js'; +export * from '../models/V1ResourceClaimTemplateList.js'; +export * from '../models/V1ResourceClaimTemplateSpec.js'; export * from '../models/V1ResourceFieldSelector.js'; export * from '../models/V1ResourceHealth.js'; export * from '../models/V1ResourcePolicyRule.js'; +export * from '../models/V1ResourcePool.js'; export * from '../models/V1ResourceQuota.js'; export * from '../models/V1ResourceQuotaList.js'; export * from '../models/V1ResourceQuotaSpec.js'; export * from '../models/V1ResourceQuotaStatus.js'; export * from '../models/V1ResourceRequirements.js'; export * from '../models/V1ResourceRule.js'; +export * from '../models/V1ResourceSlice.js'; +export * from '../models/V1ResourceSliceList.js'; +export * from '../models/V1ResourceSliceSpec.js'; export * from '../models/V1ResourceStatus.js'; export * from '../models/V1Role.js'; export * from '../models/V1RoleBinding.js'; @@ -393,6 +447,10 @@ export * from '../models/V1ServiceAccountList.js'; export * from '../models/V1ServiceAccountSubject.js'; export * from '../models/V1ServiceAccountTokenProjection.js'; export * from '../models/V1ServiceBackendPort.js'; +export * from '../models/V1ServiceCIDR.js'; +export * from '../models/V1ServiceCIDRList.js'; +export * from '../models/V1ServiceCIDRSpec.js'; +export * from '../models/V1ServiceCIDRStatus.js'; export * from '../models/V1ServiceList.js'; export * from '../models/V1ServicePort.js'; export * from '../models/V1ServiceSpec.js'; @@ -457,6 +515,8 @@ export * from '../models/V1VolumeAttachmentList.js'; export * from '../models/V1VolumeAttachmentSource.js'; export * from '../models/V1VolumeAttachmentSpec.js'; export * from '../models/V1VolumeAttachmentStatus.js'; +export * from '../models/V1VolumeAttributesClass.js'; +export * from '../models/V1VolumeAttributesClassList.js'; export * from '../models/V1VolumeDevice.js'; export * from '../models/V1VolumeError.js'; export * from '../models/V1VolumeMount.js'; @@ -489,6 +549,10 @@ export * from '../models/V1alpha1Mutation.js'; export * from '../models/V1alpha1NamedRuleWithOperations.js'; export * from '../models/V1alpha1ParamKind.js'; export * from '../models/V1alpha1ParamRef.js'; +export * from '../models/V1alpha1PodCertificateRequest.js'; +export * from '../models/V1alpha1PodCertificateRequestList.js'; +export * from '../models/V1alpha1PodCertificateRequestSpec.js'; +export * from '../models/V1alpha1PodCertificateRequestStatus.js'; export * from '../models/V1alpha1ServerStorageVersion.js'; export * from '../models/V1alpha1StorageVersion.js'; export * from '../models/V1alpha1StorageVersionCondition.js'; @@ -504,43 +568,26 @@ export * from '../models/V1alpha1VolumeAttributesClassList.js'; export * from '../models/V1alpha2LeaseCandidate.js'; export * from '../models/V1alpha2LeaseCandidateList.js'; export * from '../models/V1alpha2LeaseCandidateSpec.js'; -export * from '../models/V1alpha3AllocatedDeviceStatus.js'; -export * from '../models/V1alpha3AllocationResult.js'; -export * from '../models/V1alpha3BasicDevice.js'; export * from '../models/V1alpha3CELDeviceSelector.js'; -export * from '../models/V1alpha3Device.js'; -export * from '../models/V1alpha3DeviceAllocationConfiguration.js'; -export * from '../models/V1alpha3DeviceAllocationResult.js'; -export * from '../models/V1alpha3DeviceAttribute.js'; -export * from '../models/V1alpha3DeviceClaim.js'; -export * from '../models/V1alpha3DeviceClaimConfiguration.js'; -export * from '../models/V1alpha3DeviceClass.js'; -export * from '../models/V1alpha3DeviceClassConfiguration.js'; -export * from '../models/V1alpha3DeviceClassList.js'; -export * from '../models/V1alpha3DeviceClassSpec.js'; -export * from '../models/V1alpha3DeviceConstraint.js'; -export * from '../models/V1alpha3DeviceRequest.js'; -export * from '../models/V1alpha3DeviceRequestAllocationResult.js'; export * from '../models/V1alpha3DeviceSelector.js'; -export * from '../models/V1alpha3NetworkDeviceData.js'; -export * from '../models/V1alpha3OpaqueDeviceConfiguration.js'; -export * from '../models/V1alpha3ResourceClaim.js'; -export * from '../models/V1alpha3ResourceClaimConsumerReference.js'; -export * from '../models/V1alpha3ResourceClaimList.js'; -export * from '../models/V1alpha3ResourceClaimSpec.js'; -export * from '../models/V1alpha3ResourceClaimStatus.js'; -export * from '../models/V1alpha3ResourceClaimTemplate.js'; -export * from '../models/V1alpha3ResourceClaimTemplateList.js'; -export * from '../models/V1alpha3ResourceClaimTemplateSpec.js'; -export * from '../models/V1alpha3ResourcePool.js'; -export * from '../models/V1alpha3ResourceSlice.js'; -export * from '../models/V1alpha3ResourceSliceList.js'; -export * from '../models/V1alpha3ResourceSliceSpec.js'; +export * from '../models/V1alpha3DeviceTaint.js'; +export * from '../models/V1alpha3DeviceTaintRule.js'; +export * from '../models/V1alpha3DeviceTaintRuleList.js'; +export * from '../models/V1alpha3DeviceTaintRuleSpec.js'; +export * from '../models/V1alpha3DeviceTaintSelector.js'; export * from '../models/V1beta1AllocatedDeviceStatus.js'; export * from '../models/V1beta1AllocationResult.js'; -export * from '../models/V1beta1AuditAnnotation.js'; +export * from '../models/V1beta1ApplyConfiguration.js'; export * from '../models/V1beta1BasicDevice.js'; export * from '../models/V1beta1CELDeviceSelector.js'; +export * from '../models/V1beta1CapacityRequestPolicy.js'; +export * from '../models/V1beta1CapacityRequestPolicyRange.js'; +export * from '../models/V1beta1CapacityRequirements.js'; +export * from '../models/V1beta1ClusterTrustBundle.js'; +export * from '../models/V1beta1ClusterTrustBundleList.js'; +export * from '../models/V1beta1ClusterTrustBundleSpec.js'; +export * from '../models/V1beta1Counter.js'; +export * from '../models/V1beta1CounterSet.js'; export * from '../models/V1beta1Device.js'; export * from '../models/V1beta1DeviceAllocationConfiguration.js'; export * from '../models/V1beta1DeviceAllocationResult.js'; @@ -553,15 +600,29 @@ export * from '../models/V1beta1DeviceClassConfiguration.js'; export * from '../models/V1beta1DeviceClassList.js'; export * from '../models/V1beta1DeviceClassSpec.js'; export * from '../models/V1beta1DeviceConstraint.js'; +export * from '../models/V1beta1DeviceCounterConsumption.js'; export * from '../models/V1beta1DeviceRequest.js'; export * from '../models/V1beta1DeviceRequestAllocationResult.js'; export * from '../models/V1beta1DeviceSelector.js'; -export * from '../models/V1beta1ExpressionWarning.js'; +export * from '../models/V1beta1DeviceSubRequest.js'; +export * from '../models/V1beta1DeviceTaint.js'; +export * from '../models/V1beta1DeviceToleration.js'; export * from '../models/V1beta1IPAddress.js'; export * from '../models/V1beta1IPAddressList.js'; export * from '../models/V1beta1IPAddressSpec.js'; +export * from '../models/V1beta1JSONPatch.js'; +export * from '../models/V1beta1LeaseCandidate.js'; +export * from '../models/V1beta1LeaseCandidateList.js'; +export * from '../models/V1beta1LeaseCandidateSpec.js'; export * from '../models/V1beta1MatchCondition.js'; export * from '../models/V1beta1MatchResources.js'; +export * from '../models/V1beta1MutatingAdmissionPolicy.js'; +export * from '../models/V1beta1MutatingAdmissionPolicyBinding.js'; +export * from '../models/V1beta1MutatingAdmissionPolicyBindingList.js'; +export * from '../models/V1beta1MutatingAdmissionPolicyBindingSpec.js'; +export * from '../models/V1beta1MutatingAdmissionPolicyList.js'; +export * from '../models/V1beta1MutatingAdmissionPolicySpec.js'; +export * from '../models/V1beta1Mutation.js'; export * from '../models/V1beta1NamedRuleWithOperations.js'; export * from '../models/V1beta1NetworkDeviceData.js'; export * from '../models/V1beta1OpaqueDeviceConfiguration.js'; @@ -580,24 +641,55 @@ export * from '../models/V1beta1ResourcePool.js'; export * from '../models/V1beta1ResourceSlice.js'; export * from '../models/V1beta1ResourceSliceList.js'; export * from '../models/V1beta1ResourceSliceSpec.js'; -export * from '../models/V1beta1SelfSubjectReview.js'; -export * from '../models/V1beta1SelfSubjectReviewStatus.js'; export * from '../models/V1beta1ServiceCIDR.js'; export * from '../models/V1beta1ServiceCIDRList.js'; export * from '../models/V1beta1ServiceCIDRSpec.js'; export * from '../models/V1beta1ServiceCIDRStatus.js'; -export * from '../models/V1beta1TypeChecking.js'; -export * from '../models/V1beta1ValidatingAdmissionPolicy.js'; -export * from '../models/V1beta1ValidatingAdmissionPolicyBinding.js'; -export * from '../models/V1beta1ValidatingAdmissionPolicyBindingList.js'; -export * from '../models/V1beta1ValidatingAdmissionPolicyBindingSpec.js'; -export * from '../models/V1beta1ValidatingAdmissionPolicyList.js'; -export * from '../models/V1beta1ValidatingAdmissionPolicySpec.js'; -export * from '../models/V1beta1ValidatingAdmissionPolicyStatus.js'; -export * from '../models/V1beta1Validation.js'; export * from '../models/V1beta1Variable.js'; export * from '../models/V1beta1VolumeAttributesClass.js'; export * from '../models/V1beta1VolumeAttributesClassList.js'; +export * from '../models/V1beta2AllocatedDeviceStatus.js'; +export * from '../models/V1beta2AllocationResult.js'; +export * from '../models/V1beta2CELDeviceSelector.js'; +export * from '../models/V1beta2CapacityRequestPolicy.js'; +export * from '../models/V1beta2CapacityRequestPolicyRange.js'; +export * from '../models/V1beta2CapacityRequirements.js'; +export * from '../models/V1beta2Counter.js'; +export * from '../models/V1beta2CounterSet.js'; +export * from '../models/V1beta2Device.js'; +export * from '../models/V1beta2DeviceAllocationConfiguration.js'; +export * from '../models/V1beta2DeviceAllocationResult.js'; +export * from '../models/V1beta2DeviceAttribute.js'; +export * from '../models/V1beta2DeviceCapacity.js'; +export * from '../models/V1beta2DeviceClaim.js'; +export * from '../models/V1beta2DeviceClaimConfiguration.js'; +export * from '../models/V1beta2DeviceClass.js'; +export * from '../models/V1beta2DeviceClassConfiguration.js'; +export * from '../models/V1beta2DeviceClassList.js'; +export * from '../models/V1beta2DeviceClassSpec.js'; +export * from '../models/V1beta2DeviceConstraint.js'; +export * from '../models/V1beta2DeviceCounterConsumption.js'; +export * from '../models/V1beta2DeviceRequest.js'; +export * from '../models/V1beta2DeviceRequestAllocationResult.js'; +export * from '../models/V1beta2DeviceSelector.js'; +export * from '../models/V1beta2DeviceSubRequest.js'; +export * from '../models/V1beta2DeviceTaint.js'; +export * from '../models/V1beta2DeviceToleration.js'; +export * from '../models/V1beta2ExactDeviceRequest.js'; +export * from '../models/V1beta2NetworkDeviceData.js'; +export * from '../models/V1beta2OpaqueDeviceConfiguration.js'; +export * from '../models/V1beta2ResourceClaim.js'; +export * from '../models/V1beta2ResourceClaimConsumerReference.js'; +export * from '../models/V1beta2ResourceClaimList.js'; +export * from '../models/V1beta2ResourceClaimSpec.js'; +export * from '../models/V1beta2ResourceClaimStatus.js'; +export * from '../models/V1beta2ResourceClaimTemplate.js'; +export * from '../models/V1beta2ResourceClaimTemplateList.js'; +export * from '../models/V1beta2ResourceClaimTemplateSpec.js'; +export * from '../models/V1beta2ResourcePool.js'; +export * from '../models/V1beta2ResourceSlice.js'; +export * from '../models/V1beta2ResourceSliceList.js'; +export * from '../models/V1beta2ResourceSliceSpec.js'; export * from '../models/V2ContainerResourceMetricSource.js'; export * from '../models/V2ContainerResourceMetricStatus.js'; export * from '../models/V2CrossVersionObjectReference.js'; @@ -634,12 +726,14 @@ import { CoreV1EndpointPort } from '../models/CoreV1EndpointPort.js'; import { CoreV1Event } from '../models/CoreV1Event.js'; import { CoreV1EventList } from '../models/CoreV1EventList.js'; import { CoreV1EventSeries } from '../models/CoreV1EventSeries.js'; +import { CoreV1ResourceClaim } from '../models/CoreV1ResourceClaim.js'; import { DiscoveryV1EndpointPort } from '../models/DiscoveryV1EndpointPort.js'; import { EventsV1Event } from '../models/EventsV1Event.js'; import { EventsV1EventList } from '../models/EventsV1EventList.js'; import { EventsV1EventSeries } from '../models/EventsV1EventSeries.js'; import { FlowcontrolV1Subject } from '../models/FlowcontrolV1Subject.js'; import { RbacV1Subject } from '../models/RbacV1Subject.js'; +import { ResourceV1ResourceClaim } from '../models/ResourceV1ResourceClaim.js'; import { StorageV1TokenRequest } from '../models/StorageV1TokenRequest.js'; import { V1APIGroup } from '../models/V1APIGroup.js'; import { V1APIGroupList } from '../models/V1APIGroupList.js'; @@ -654,6 +748,8 @@ import { V1APIVersions } from '../models/V1APIVersions.js'; import { V1AWSElasticBlockStoreVolumeSource } from '../models/V1AWSElasticBlockStoreVolumeSource.js'; import { V1Affinity } from '../models/V1Affinity.js'; import { V1AggregationRule } from '../models/V1AggregationRule.js'; +import { V1AllocatedDeviceStatus } from '../models/V1AllocatedDeviceStatus.js'; +import { V1AllocationResult } from '../models/V1AllocationResult.js'; import { V1AppArmorProfile } from '../models/V1AppArmorProfile.js'; import { V1AttachedVolume } from '../models/V1AttachedVolume.js'; import { V1AuditAnnotation } from '../models/V1AuditAnnotation.js'; @@ -662,6 +758,7 @@ import { V1AzureFilePersistentVolumeSource } from '../models/V1AzureFilePersiste import { V1AzureFileVolumeSource } from '../models/V1AzureFileVolumeSource.js'; import { V1Binding } from '../models/V1Binding.js'; import { V1BoundObjectReference } from '../models/V1BoundObjectReference.js'; +import { V1CELDeviceSelector } from '../models/V1CELDeviceSelector.js'; import { V1CSIDriver } from '../models/V1CSIDriver.js'; import { V1CSIDriverList } from '../models/V1CSIDriverList.js'; import { V1CSIDriverSpec } from '../models/V1CSIDriverSpec.js'; @@ -674,6 +771,9 @@ import { V1CSIStorageCapacity } from '../models/V1CSIStorageCapacity.js'; import { V1CSIStorageCapacityList } from '../models/V1CSIStorageCapacityList.js'; import { V1CSIVolumeSource } from '../models/V1CSIVolumeSource.js'; import { V1Capabilities } from '../models/V1Capabilities.js'; +import { V1CapacityRequestPolicy } from '../models/V1CapacityRequestPolicy.js'; +import { V1CapacityRequestPolicyRange } from '../models/V1CapacityRequestPolicyRange.js'; +import { V1CapacityRequirements } from '../models/V1CapacityRequirements.js'; import { V1CephFSPersistentVolumeSource } from '../models/V1CephFSPersistentVolumeSource.js'; import { V1CephFSVolumeSource } from '../models/V1CephFSVolumeSource.js'; import { V1CertificateSigningRequest } from '../models/V1CertificateSigningRequest.js'; @@ -701,9 +801,12 @@ import { V1ConfigMapNodeConfigSource } from '../models/V1ConfigMapNodeConfigSour import { V1ConfigMapProjection } from '../models/V1ConfigMapProjection.js'; import { V1ConfigMapVolumeSource } from '../models/V1ConfigMapVolumeSource.js'; import { V1Container } from '../models/V1Container.js'; +import { V1ContainerExtendedResourceRequest } from '../models/V1ContainerExtendedResourceRequest.js'; import { V1ContainerImage } from '../models/V1ContainerImage.js'; import { V1ContainerPort } from '../models/V1ContainerPort.js'; import { V1ContainerResizePolicy } from '../models/V1ContainerResizePolicy.js'; +import { V1ContainerRestartRule } from '../models/V1ContainerRestartRule.js'; +import { V1ContainerRestartRuleOnExitCodes } from '../models/V1ContainerRestartRuleOnExitCodes.js'; import { V1ContainerState } from '../models/V1ContainerState.js'; import { V1ContainerStateRunning } from '../models/V1ContainerStateRunning.js'; import { V1ContainerStateTerminated } from '../models/V1ContainerStateTerminated.js'; @@ -712,6 +815,8 @@ import { V1ContainerStatus } from '../models/V1ContainerStatus.js'; import { V1ContainerUser } from '../models/V1ContainerUser.js'; import { V1ControllerRevision } from '../models/V1ControllerRevision.js'; import { V1ControllerRevisionList } from '../models/V1ControllerRevisionList.js'; +import { V1Counter } from '../models/V1Counter.js'; +import { V1CounterSet } from '../models/V1CounterSet.js'; import { V1CronJob } from '../models/V1CronJob.js'; import { V1CronJobList } from '../models/V1CronJobList.js'; import { V1CronJobSpec } from '../models/V1CronJobSpec.js'; @@ -743,6 +848,25 @@ import { V1DeploymentList } from '../models/V1DeploymentList.js'; import { V1DeploymentSpec } from '../models/V1DeploymentSpec.js'; import { V1DeploymentStatus } from '../models/V1DeploymentStatus.js'; import { V1DeploymentStrategy } from '../models/V1DeploymentStrategy.js'; +import { V1Device } from '../models/V1Device.js'; +import { V1DeviceAllocationConfiguration } from '../models/V1DeviceAllocationConfiguration.js'; +import { V1DeviceAllocationResult } from '../models/V1DeviceAllocationResult.js'; +import { V1DeviceAttribute } from '../models/V1DeviceAttribute.js'; +import { V1DeviceCapacity } from '../models/V1DeviceCapacity.js'; +import { V1DeviceClaim } from '../models/V1DeviceClaim.js'; +import { V1DeviceClaimConfiguration } from '../models/V1DeviceClaimConfiguration.js'; +import { V1DeviceClass } from '../models/V1DeviceClass.js'; +import { V1DeviceClassConfiguration } from '../models/V1DeviceClassConfiguration.js'; +import { V1DeviceClassList } from '../models/V1DeviceClassList.js'; +import { V1DeviceClassSpec } from '../models/V1DeviceClassSpec.js'; +import { V1DeviceConstraint } from '../models/V1DeviceConstraint.js'; +import { V1DeviceCounterConsumption } from '../models/V1DeviceCounterConsumption.js'; +import { V1DeviceRequest } from '../models/V1DeviceRequest.js'; +import { V1DeviceRequestAllocationResult } from '../models/V1DeviceRequestAllocationResult.js'; +import { V1DeviceSelector } from '../models/V1DeviceSelector.js'; +import { V1DeviceSubRequest } from '../models/V1DeviceSubRequest.js'; +import { V1DeviceTaint } from '../models/V1DeviceTaint.js'; +import { V1DeviceToleration } from '../models/V1DeviceToleration.js'; import { V1DownwardAPIProjection } from '../models/V1DownwardAPIProjection.js'; import { V1DownwardAPIVolumeFile } from '../models/V1DownwardAPIVolumeFile.js'; import { V1DownwardAPIVolumeSource } from '../models/V1DownwardAPIVolumeSource.js'; @@ -763,6 +887,7 @@ import { V1EphemeralContainer } from '../models/V1EphemeralContainer.js'; import { V1EphemeralVolumeSource } from '../models/V1EphemeralVolumeSource.js'; import { V1EventSource } from '../models/V1EventSource.js'; import { V1Eviction } from '../models/V1Eviction.js'; +import { V1ExactDeviceRequest } from '../models/V1ExactDeviceRequest.js'; import { V1ExecAction } from '../models/V1ExecAction.js'; import { V1ExemptPriorityLevelConfiguration } from '../models/V1ExemptPriorityLevelConfiguration.js'; import { V1ExpressionWarning } from '../models/V1ExpressionWarning.js'; @@ -770,6 +895,7 @@ import { V1ExternalDocumentation } from '../models/V1ExternalDocumentation.js'; import { V1FCVolumeSource } from '../models/V1FCVolumeSource.js'; import { V1FieldSelectorAttributes } from '../models/V1FieldSelectorAttributes.js'; import { V1FieldSelectorRequirement } from '../models/V1FieldSelectorRequirement.js'; +import { V1FileKeySelector } from '../models/V1FileKeySelector.js'; import { V1FlexPersistentVolumeSource } from '../models/V1FlexPersistentVolumeSource.js'; import { V1FlexVolumeSource } from '../models/V1FlexVolumeSource.js'; import { V1FlockerVolumeSource } from '../models/V1FlockerVolumeSource.js'; @@ -779,6 +905,7 @@ import { V1FlowSchemaCondition } from '../models/V1FlowSchemaCondition.js'; import { V1FlowSchemaList } from '../models/V1FlowSchemaList.js'; import { V1FlowSchemaSpec } from '../models/V1FlowSchemaSpec.js'; import { V1FlowSchemaStatus } from '../models/V1FlowSchemaStatus.js'; +import { V1ForNode } from '../models/V1ForNode.js'; import { V1ForZone } from '../models/V1ForZone.js'; import { V1GCEPersistentDiskVolumeSource } from '../models/V1GCEPersistentDiskVolumeSource.js'; import { V1GRPCAction } from '../models/V1GRPCAction.js'; @@ -798,6 +925,9 @@ import { V1HorizontalPodAutoscalerStatus } from '../models/V1HorizontalPodAutosc import { V1HostAlias } from '../models/V1HostAlias.js'; import { V1HostIP } from '../models/V1HostIP.js'; import { V1HostPathVolumeSource } from '../models/V1HostPathVolumeSource.js'; +import { V1IPAddress } from '../models/V1IPAddress.js'; +import { V1IPAddressList } from '../models/V1IPAddressList.js'; +import { V1IPAddressSpec } from '../models/V1IPAddressSpec.js'; import { V1IPBlock } from '../models/V1IPBlock.js'; import { V1ISCSIPersistentVolumeSource } from '../models/V1ISCSIPersistentVolumeSource.js'; import { V1ISCSIVolumeSource } from '../models/V1ISCSIVolumeSource.js'; @@ -860,6 +990,7 @@ import { V1NamespaceCondition } from '../models/V1NamespaceCondition.js'; import { V1NamespaceList } from '../models/V1NamespaceList.js'; import { V1NamespaceSpec } from '../models/V1NamespaceSpec.js'; import { V1NamespaceStatus } from '../models/V1NamespaceStatus.js'; +import { V1NetworkDeviceData } from '../models/V1NetworkDeviceData.js'; import { V1NetworkPolicy } from '../models/V1NetworkPolicy.js'; import { V1NetworkPolicyEgressRule } from '../models/V1NetworkPolicyEgressRule.js'; import { V1NetworkPolicyIngressRule } from '../models/V1NetworkPolicyIngressRule.js'; @@ -883,6 +1014,7 @@ import { V1NodeSelectorRequirement } from '../models/V1NodeSelectorRequirement.j import { V1NodeSelectorTerm } from '../models/V1NodeSelectorTerm.js'; import { V1NodeSpec } from '../models/V1NodeSpec.js'; import { V1NodeStatus } from '../models/V1NodeStatus.js'; +import { V1NodeSwapStatus } from '../models/V1NodeSwapStatus.js'; import { V1NodeSystemInfo } from '../models/V1NodeSystemInfo.js'; import { V1NonResourceAttributes } from '../models/V1NonResourceAttributes.js'; import { V1NonResourcePolicyRule } from '../models/V1NonResourcePolicyRule.js'; @@ -890,10 +1022,12 @@ import { V1NonResourceRule } from '../models/V1NonResourceRule.js'; import { V1ObjectFieldSelector } from '../models/V1ObjectFieldSelector.js'; import { V1ObjectMeta } from '../models/V1ObjectMeta.js'; import { V1ObjectReference } from '../models/V1ObjectReference.js'; +import { V1OpaqueDeviceConfiguration } from '../models/V1OpaqueDeviceConfiguration.js'; import { V1Overhead } from '../models/V1Overhead.js'; import { V1OwnerReference } from '../models/V1OwnerReference.js'; import { V1ParamKind } from '../models/V1ParamKind.js'; import { V1ParamRef } from '../models/V1ParamRef.js'; +import { V1ParentReference } from '../models/V1ParentReference.js'; import { V1PersistentVolume } from '../models/V1PersistentVolume.js'; import { V1PersistentVolumeClaim } from '../models/V1PersistentVolumeClaim.js'; import { V1PersistentVolumeClaimCondition } from '../models/V1PersistentVolumeClaimCondition.js'; @@ -910,6 +1044,7 @@ import { V1Pod } from '../models/V1Pod.js'; import { V1PodAffinity } from '../models/V1PodAffinity.js'; import { V1PodAffinityTerm } from '../models/V1PodAffinityTerm.js'; import { V1PodAntiAffinity } from '../models/V1PodAntiAffinity.js'; +import { V1PodCertificateProjection } from '../models/V1PodCertificateProjection.js'; import { V1PodCondition } from '../models/V1PodCondition.js'; import { V1PodDNSConfig } from '../models/V1PodDNSConfig.js'; import { V1PodDNSConfigOption } from '../models/V1PodDNSConfigOption.js'; @@ -917,6 +1052,7 @@ import { V1PodDisruptionBudget } from '../models/V1PodDisruptionBudget.js'; import { V1PodDisruptionBudgetList } from '../models/V1PodDisruptionBudgetList.js'; import { V1PodDisruptionBudgetSpec } from '../models/V1PodDisruptionBudgetSpec.js'; import { V1PodDisruptionBudgetStatus } from '../models/V1PodDisruptionBudgetStatus.js'; +import { V1PodExtendedResourceClaimStatus } from '../models/V1PodExtendedResourceClaimStatus.js'; import { V1PodFailurePolicy } from '../models/V1PodFailurePolicy.js'; import { V1PodFailurePolicyOnExitCodesRequirement } from '../models/V1PodFailurePolicyOnExitCodesRequirement.js'; import { V1PodFailurePolicyOnPodConditionsPattern } from '../models/V1PodFailurePolicyOnPodConditionsPattern.js'; @@ -965,16 +1101,26 @@ import { V1ReplicationControllerList } from '../models/V1ReplicationControllerLi import { V1ReplicationControllerSpec } from '../models/V1ReplicationControllerSpec.js'; import { V1ReplicationControllerStatus } from '../models/V1ReplicationControllerStatus.js'; import { V1ResourceAttributes } from '../models/V1ResourceAttributes.js'; -import { V1ResourceClaim } from '../models/V1ResourceClaim.js'; +import { V1ResourceClaimConsumerReference } from '../models/V1ResourceClaimConsumerReference.js'; +import { V1ResourceClaimList } from '../models/V1ResourceClaimList.js'; +import { V1ResourceClaimSpec } from '../models/V1ResourceClaimSpec.js'; +import { V1ResourceClaimStatus } from '../models/V1ResourceClaimStatus.js'; +import { V1ResourceClaimTemplate } from '../models/V1ResourceClaimTemplate.js'; +import { V1ResourceClaimTemplateList } from '../models/V1ResourceClaimTemplateList.js'; +import { V1ResourceClaimTemplateSpec } from '../models/V1ResourceClaimTemplateSpec.js'; import { V1ResourceFieldSelector } from '../models/V1ResourceFieldSelector.js'; import { V1ResourceHealth } from '../models/V1ResourceHealth.js'; import { V1ResourcePolicyRule } from '../models/V1ResourcePolicyRule.js'; +import { V1ResourcePool } from '../models/V1ResourcePool.js'; import { V1ResourceQuota } from '../models/V1ResourceQuota.js'; import { V1ResourceQuotaList } from '../models/V1ResourceQuotaList.js'; import { V1ResourceQuotaSpec } from '../models/V1ResourceQuotaSpec.js'; import { V1ResourceQuotaStatus } from '../models/V1ResourceQuotaStatus.js'; import { V1ResourceRequirements } from '../models/V1ResourceRequirements.js'; import { V1ResourceRule } from '../models/V1ResourceRule.js'; +import { V1ResourceSlice } from '../models/V1ResourceSlice.js'; +import { V1ResourceSliceList } from '../models/V1ResourceSliceList.js'; +import { V1ResourceSliceSpec } from '../models/V1ResourceSliceSpec.js'; import { V1ResourceStatus } from '../models/V1ResourceStatus.js'; import { V1Role } from '../models/V1Role.js'; import { V1RoleBinding } from '../models/V1RoleBinding.js'; @@ -1019,6 +1165,10 @@ import { V1ServiceAccountList } from '../models/V1ServiceAccountList.js'; import { V1ServiceAccountSubject } from '../models/V1ServiceAccountSubject.js'; import { V1ServiceAccountTokenProjection } from '../models/V1ServiceAccountTokenProjection.js'; import { V1ServiceBackendPort } from '../models/V1ServiceBackendPort.js'; +import { V1ServiceCIDR } from '../models/V1ServiceCIDR.js'; +import { V1ServiceCIDRList } from '../models/V1ServiceCIDRList.js'; +import { V1ServiceCIDRSpec } from '../models/V1ServiceCIDRSpec.js'; +import { V1ServiceCIDRStatus } from '../models/V1ServiceCIDRStatus.js'; import { V1ServiceList } from '../models/V1ServiceList.js'; import { V1ServicePort } from '../models/V1ServicePort.js'; import { V1ServiceSpec } from '../models/V1ServiceSpec.js'; @@ -1083,6 +1233,8 @@ import { V1VolumeAttachmentList } from '../models/V1VolumeAttachmentList.js'; import { V1VolumeAttachmentSource } from '../models/V1VolumeAttachmentSource.js'; import { V1VolumeAttachmentSpec } from '../models/V1VolumeAttachmentSpec.js'; import { V1VolumeAttachmentStatus } from '../models/V1VolumeAttachmentStatus.js'; +import { V1VolumeAttributesClass } from '../models/V1VolumeAttributesClass.js'; +import { V1VolumeAttributesClassList } from '../models/V1VolumeAttributesClassList.js'; import { V1VolumeDevice } from '../models/V1VolumeDevice.js'; import { V1VolumeError } from '../models/V1VolumeError.js'; import { V1VolumeMount } from '../models/V1VolumeMount.js'; @@ -1115,6 +1267,10 @@ import { V1alpha1Mutation } from '../models/V1alpha1Mutation.js'; import { V1alpha1NamedRuleWithOperations } from '../models/V1alpha1NamedRuleWithOperations.js'; import { V1alpha1ParamKind } from '../models/V1alpha1ParamKind.js'; import { V1alpha1ParamRef } from '../models/V1alpha1ParamRef.js'; +import { V1alpha1PodCertificateRequest } from '../models/V1alpha1PodCertificateRequest.js'; +import { V1alpha1PodCertificateRequestList } from '../models/V1alpha1PodCertificateRequestList.js'; +import { V1alpha1PodCertificateRequestSpec } from '../models/V1alpha1PodCertificateRequestSpec.js'; +import { V1alpha1PodCertificateRequestStatus } from '../models/V1alpha1PodCertificateRequestStatus.js'; import { V1alpha1ServerStorageVersion } from '../models/V1alpha1ServerStorageVersion.js'; import { V1alpha1StorageVersion } from '../models/V1alpha1StorageVersion.js'; import { V1alpha1StorageVersionCondition } from '../models/V1alpha1StorageVersionCondition.js'; @@ -1130,43 +1286,26 @@ import { V1alpha1VolumeAttributesClassList } from '../models/V1alpha1VolumeAttri import { V1alpha2LeaseCandidate } from '../models/V1alpha2LeaseCandidate.js'; import { V1alpha2LeaseCandidateList } from '../models/V1alpha2LeaseCandidateList.js'; import { V1alpha2LeaseCandidateSpec } from '../models/V1alpha2LeaseCandidateSpec.js'; -import { V1alpha3AllocatedDeviceStatus } from '../models/V1alpha3AllocatedDeviceStatus.js'; -import { V1alpha3AllocationResult } from '../models/V1alpha3AllocationResult.js'; -import { V1alpha3BasicDevice } from '../models/V1alpha3BasicDevice.js'; import { V1alpha3CELDeviceSelector } from '../models/V1alpha3CELDeviceSelector.js'; -import { V1alpha3Device } from '../models/V1alpha3Device.js'; -import { V1alpha3DeviceAllocationConfiguration } from '../models/V1alpha3DeviceAllocationConfiguration.js'; -import { V1alpha3DeviceAllocationResult } from '../models/V1alpha3DeviceAllocationResult.js'; -import { V1alpha3DeviceAttribute } from '../models/V1alpha3DeviceAttribute.js'; -import { V1alpha3DeviceClaim } from '../models/V1alpha3DeviceClaim.js'; -import { V1alpha3DeviceClaimConfiguration } from '../models/V1alpha3DeviceClaimConfiguration.js'; -import { V1alpha3DeviceClass } from '../models/V1alpha3DeviceClass.js'; -import { V1alpha3DeviceClassConfiguration } from '../models/V1alpha3DeviceClassConfiguration.js'; -import { V1alpha3DeviceClassList } from '../models/V1alpha3DeviceClassList.js'; -import { V1alpha3DeviceClassSpec } from '../models/V1alpha3DeviceClassSpec.js'; -import { V1alpha3DeviceConstraint } from '../models/V1alpha3DeviceConstraint.js'; -import { V1alpha3DeviceRequest } from '../models/V1alpha3DeviceRequest.js'; -import { V1alpha3DeviceRequestAllocationResult } from '../models/V1alpha3DeviceRequestAllocationResult.js'; import { V1alpha3DeviceSelector } from '../models/V1alpha3DeviceSelector.js'; -import { V1alpha3NetworkDeviceData } from '../models/V1alpha3NetworkDeviceData.js'; -import { V1alpha3OpaqueDeviceConfiguration } from '../models/V1alpha3OpaqueDeviceConfiguration.js'; -import { V1alpha3ResourceClaim } from '../models/V1alpha3ResourceClaim.js'; -import { V1alpha3ResourceClaimConsumerReference } from '../models/V1alpha3ResourceClaimConsumerReference.js'; -import { V1alpha3ResourceClaimList } from '../models/V1alpha3ResourceClaimList.js'; -import { V1alpha3ResourceClaimSpec } from '../models/V1alpha3ResourceClaimSpec.js'; -import { V1alpha3ResourceClaimStatus } from '../models/V1alpha3ResourceClaimStatus.js'; -import { V1alpha3ResourceClaimTemplate } from '../models/V1alpha3ResourceClaimTemplate.js'; -import { V1alpha3ResourceClaimTemplateList } from '../models/V1alpha3ResourceClaimTemplateList.js'; -import { V1alpha3ResourceClaimTemplateSpec } from '../models/V1alpha3ResourceClaimTemplateSpec.js'; -import { V1alpha3ResourcePool } from '../models/V1alpha3ResourcePool.js'; -import { V1alpha3ResourceSlice } from '../models/V1alpha3ResourceSlice.js'; -import { V1alpha3ResourceSliceList } from '../models/V1alpha3ResourceSliceList.js'; -import { V1alpha3ResourceSliceSpec } from '../models/V1alpha3ResourceSliceSpec.js'; +import { V1alpha3DeviceTaint } from '../models/V1alpha3DeviceTaint.js'; +import { V1alpha3DeviceTaintRule } from '../models/V1alpha3DeviceTaintRule.js'; +import { V1alpha3DeviceTaintRuleList } from '../models/V1alpha3DeviceTaintRuleList.js'; +import { V1alpha3DeviceTaintRuleSpec } from '../models/V1alpha3DeviceTaintRuleSpec.js'; +import { V1alpha3DeviceTaintSelector } from '../models/V1alpha3DeviceTaintSelector.js'; import { V1beta1AllocatedDeviceStatus } from '../models/V1beta1AllocatedDeviceStatus.js'; import { V1beta1AllocationResult } from '../models/V1beta1AllocationResult.js'; -import { V1beta1AuditAnnotation } from '../models/V1beta1AuditAnnotation.js'; +import { V1beta1ApplyConfiguration } from '../models/V1beta1ApplyConfiguration.js'; import { V1beta1BasicDevice } from '../models/V1beta1BasicDevice.js'; import { V1beta1CELDeviceSelector } from '../models/V1beta1CELDeviceSelector.js'; +import { V1beta1CapacityRequestPolicy } from '../models/V1beta1CapacityRequestPolicy.js'; +import { V1beta1CapacityRequestPolicyRange } from '../models/V1beta1CapacityRequestPolicyRange.js'; +import { V1beta1CapacityRequirements } from '../models/V1beta1CapacityRequirements.js'; +import { V1beta1ClusterTrustBundle } from '../models/V1beta1ClusterTrustBundle.js'; +import { V1beta1ClusterTrustBundleList } from '../models/V1beta1ClusterTrustBundleList.js'; +import { V1beta1ClusterTrustBundleSpec } from '../models/V1beta1ClusterTrustBundleSpec.js'; +import { V1beta1Counter } from '../models/V1beta1Counter.js'; +import { V1beta1CounterSet } from '../models/V1beta1CounterSet.js'; import { V1beta1Device } from '../models/V1beta1Device.js'; import { V1beta1DeviceAllocationConfiguration } from '../models/V1beta1DeviceAllocationConfiguration.js'; import { V1beta1DeviceAllocationResult } from '../models/V1beta1DeviceAllocationResult.js'; @@ -1179,15 +1318,29 @@ import { V1beta1DeviceClassConfiguration } from '../models/V1beta1DeviceClassCon import { V1beta1DeviceClassList } from '../models/V1beta1DeviceClassList.js'; import { V1beta1DeviceClassSpec } from '../models/V1beta1DeviceClassSpec.js'; import { V1beta1DeviceConstraint } from '../models/V1beta1DeviceConstraint.js'; +import { V1beta1DeviceCounterConsumption } from '../models/V1beta1DeviceCounterConsumption.js'; import { V1beta1DeviceRequest } from '../models/V1beta1DeviceRequest.js'; import { V1beta1DeviceRequestAllocationResult } from '../models/V1beta1DeviceRequestAllocationResult.js'; import { V1beta1DeviceSelector } from '../models/V1beta1DeviceSelector.js'; -import { V1beta1ExpressionWarning } from '../models/V1beta1ExpressionWarning.js'; +import { V1beta1DeviceSubRequest } from '../models/V1beta1DeviceSubRequest.js'; +import { V1beta1DeviceTaint } from '../models/V1beta1DeviceTaint.js'; +import { V1beta1DeviceToleration } from '../models/V1beta1DeviceToleration.js'; import { V1beta1IPAddress } from '../models/V1beta1IPAddress.js'; import { V1beta1IPAddressList } from '../models/V1beta1IPAddressList.js'; import { V1beta1IPAddressSpec } from '../models/V1beta1IPAddressSpec.js'; +import { V1beta1JSONPatch } from '../models/V1beta1JSONPatch.js'; +import { V1beta1LeaseCandidate } from '../models/V1beta1LeaseCandidate.js'; +import { V1beta1LeaseCandidateList } from '../models/V1beta1LeaseCandidateList.js'; +import { V1beta1LeaseCandidateSpec } from '../models/V1beta1LeaseCandidateSpec.js'; import { V1beta1MatchCondition } from '../models/V1beta1MatchCondition.js'; import { V1beta1MatchResources } from '../models/V1beta1MatchResources.js'; +import { V1beta1MutatingAdmissionPolicy } from '../models/V1beta1MutatingAdmissionPolicy.js'; +import { V1beta1MutatingAdmissionPolicyBinding } from '../models/V1beta1MutatingAdmissionPolicyBinding.js'; +import { V1beta1MutatingAdmissionPolicyBindingList } from '../models/V1beta1MutatingAdmissionPolicyBindingList.js'; +import { V1beta1MutatingAdmissionPolicyBindingSpec } from '../models/V1beta1MutatingAdmissionPolicyBindingSpec.js'; +import { V1beta1MutatingAdmissionPolicyList } from '../models/V1beta1MutatingAdmissionPolicyList.js'; +import { V1beta1MutatingAdmissionPolicySpec } from '../models/V1beta1MutatingAdmissionPolicySpec.js'; +import { V1beta1Mutation } from '../models/V1beta1Mutation.js'; import { V1beta1NamedRuleWithOperations } from '../models/V1beta1NamedRuleWithOperations.js'; import { V1beta1NetworkDeviceData } from '../models/V1beta1NetworkDeviceData.js'; import { V1beta1OpaqueDeviceConfiguration } from '../models/V1beta1OpaqueDeviceConfiguration.js'; @@ -1206,24 +1359,55 @@ import { V1beta1ResourcePool } from '../models/V1beta1ResourcePool.js'; import { V1beta1ResourceSlice } from '../models/V1beta1ResourceSlice.js'; import { V1beta1ResourceSliceList } from '../models/V1beta1ResourceSliceList.js'; import { V1beta1ResourceSliceSpec } from '../models/V1beta1ResourceSliceSpec.js'; -import { V1beta1SelfSubjectReview } from '../models/V1beta1SelfSubjectReview.js'; -import { V1beta1SelfSubjectReviewStatus } from '../models/V1beta1SelfSubjectReviewStatus.js'; import { V1beta1ServiceCIDR } from '../models/V1beta1ServiceCIDR.js'; import { V1beta1ServiceCIDRList } from '../models/V1beta1ServiceCIDRList.js'; import { V1beta1ServiceCIDRSpec } from '../models/V1beta1ServiceCIDRSpec.js'; import { V1beta1ServiceCIDRStatus } from '../models/V1beta1ServiceCIDRStatus.js'; -import { V1beta1TypeChecking } from '../models/V1beta1TypeChecking.js'; -import { V1beta1ValidatingAdmissionPolicy } from '../models/V1beta1ValidatingAdmissionPolicy.js'; -import { V1beta1ValidatingAdmissionPolicyBinding } from '../models/V1beta1ValidatingAdmissionPolicyBinding.js'; -import { V1beta1ValidatingAdmissionPolicyBindingList } from '../models/V1beta1ValidatingAdmissionPolicyBindingList.js'; -import { V1beta1ValidatingAdmissionPolicyBindingSpec } from '../models/V1beta1ValidatingAdmissionPolicyBindingSpec.js'; -import { V1beta1ValidatingAdmissionPolicyList } from '../models/V1beta1ValidatingAdmissionPolicyList.js'; -import { V1beta1ValidatingAdmissionPolicySpec } from '../models/V1beta1ValidatingAdmissionPolicySpec.js'; -import { V1beta1ValidatingAdmissionPolicyStatus } from '../models/V1beta1ValidatingAdmissionPolicyStatus.js'; -import { V1beta1Validation } from '../models/V1beta1Validation.js'; import { V1beta1Variable } from '../models/V1beta1Variable.js'; import { V1beta1VolumeAttributesClass } from '../models/V1beta1VolumeAttributesClass.js'; import { V1beta1VolumeAttributesClassList } from '../models/V1beta1VolumeAttributesClassList.js'; +import { V1beta2AllocatedDeviceStatus } from '../models/V1beta2AllocatedDeviceStatus.js'; +import { V1beta2AllocationResult } from '../models/V1beta2AllocationResult.js'; +import { V1beta2CELDeviceSelector } from '../models/V1beta2CELDeviceSelector.js'; +import { V1beta2CapacityRequestPolicy } from '../models/V1beta2CapacityRequestPolicy.js'; +import { V1beta2CapacityRequestPolicyRange } from '../models/V1beta2CapacityRequestPolicyRange.js'; +import { V1beta2CapacityRequirements } from '../models/V1beta2CapacityRequirements.js'; +import { V1beta2Counter } from '../models/V1beta2Counter.js'; +import { V1beta2CounterSet } from '../models/V1beta2CounterSet.js'; +import { V1beta2Device } from '../models/V1beta2Device.js'; +import { V1beta2DeviceAllocationConfiguration } from '../models/V1beta2DeviceAllocationConfiguration.js'; +import { V1beta2DeviceAllocationResult } from '../models/V1beta2DeviceAllocationResult.js'; +import { V1beta2DeviceAttribute } from '../models/V1beta2DeviceAttribute.js'; +import { V1beta2DeviceCapacity } from '../models/V1beta2DeviceCapacity.js'; +import { V1beta2DeviceClaim } from '../models/V1beta2DeviceClaim.js'; +import { V1beta2DeviceClaimConfiguration } from '../models/V1beta2DeviceClaimConfiguration.js'; +import { V1beta2DeviceClass } from '../models/V1beta2DeviceClass.js'; +import { V1beta2DeviceClassConfiguration } from '../models/V1beta2DeviceClassConfiguration.js'; +import { V1beta2DeviceClassList } from '../models/V1beta2DeviceClassList.js'; +import { V1beta2DeviceClassSpec } from '../models/V1beta2DeviceClassSpec.js'; +import { V1beta2DeviceConstraint } from '../models/V1beta2DeviceConstraint.js'; +import { V1beta2DeviceCounterConsumption } from '../models/V1beta2DeviceCounterConsumption.js'; +import { V1beta2DeviceRequest } from '../models/V1beta2DeviceRequest.js'; +import { V1beta2DeviceRequestAllocationResult } from '../models/V1beta2DeviceRequestAllocationResult.js'; +import { V1beta2DeviceSelector } from '../models/V1beta2DeviceSelector.js'; +import { V1beta2DeviceSubRequest } from '../models/V1beta2DeviceSubRequest.js'; +import { V1beta2DeviceTaint } from '../models/V1beta2DeviceTaint.js'; +import { V1beta2DeviceToleration } from '../models/V1beta2DeviceToleration.js'; +import { V1beta2ExactDeviceRequest } from '../models/V1beta2ExactDeviceRequest.js'; +import { V1beta2NetworkDeviceData } from '../models/V1beta2NetworkDeviceData.js'; +import { V1beta2OpaqueDeviceConfiguration } from '../models/V1beta2OpaqueDeviceConfiguration.js'; +import { V1beta2ResourceClaim } from '../models/V1beta2ResourceClaim.js'; +import { V1beta2ResourceClaimConsumerReference } from '../models/V1beta2ResourceClaimConsumerReference.js'; +import { V1beta2ResourceClaimList } from '../models/V1beta2ResourceClaimList.js'; +import { V1beta2ResourceClaimSpec } from '../models/V1beta2ResourceClaimSpec.js'; +import { V1beta2ResourceClaimStatus } from '../models/V1beta2ResourceClaimStatus.js'; +import { V1beta2ResourceClaimTemplate } from '../models/V1beta2ResourceClaimTemplate.js'; +import { V1beta2ResourceClaimTemplateList } from '../models/V1beta2ResourceClaimTemplateList.js'; +import { V1beta2ResourceClaimTemplateSpec } from '../models/V1beta2ResourceClaimTemplateSpec.js'; +import { V1beta2ResourcePool } from '../models/V1beta2ResourcePool.js'; +import { V1beta2ResourceSlice } from '../models/V1beta2ResourceSlice.js'; +import { V1beta2ResourceSliceList } from '../models/V1beta2ResourceSliceList.js'; +import { V1beta2ResourceSliceSpec } from '../models/V1beta2ResourceSliceSpec.js'; import { V2ContainerResourceMetricSource } from '../models/V2ContainerResourceMetricSource.js'; import { V2ContainerResourceMetricStatus } from '../models/V2ContainerResourceMetricStatus.js'; import { V2CrossVersionObjectReference } from '../models/V2CrossVersionObjectReference.js'; @@ -1276,12 +1460,14 @@ let typeMap: {[index: string]: any} = { "CoreV1Event": CoreV1Event, "CoreV1EventList": CoreV1EventList, "CoreV1EventSeries": CoreV1EventSeries, + "CoreV1ResourceClaim": CoreV1ResourceClaim, "DiscoveryV1EndpointPort": DiscoveryV1EndpointPort, "EventsV1Event": EventsV1Event, "EventsV1EventList": EventsV1EventList, "EventsV1EventSeries": EventsV1EventSeries, "FlowcontrolV1Subject": FlowcontrolV1Subject, "RbacV1Subject": RbacV1Subject, + "ResourceV1ResourceClaim": ResourceV1ResourceClaim, "StorageV1TokenRequest": StorageV1TokenRequest, "V1APIGroup": V1APIGroup, "V1APIGroupList": V1APIGroupList, @@ -1296,6 +1482,8 @@ let typeMap: {[index: string]: any} = { "V1AWSElasticBlockStoreVolumeSource": V1AWSElasticBlockStoreVolumeSource, "V1Affinity": V1Affinity, "V1AggregationRule": V1AggregationRule, + "V1AllocatedDeviceStatus": V1AllocatedDeviceStatus, + "V1AllocationResult": V1AllocationResult, "V1AppArmorProfile": V1AppArmorProfile, "V1AttachedVolume": V1AttachedVolume, "V1AuditAnnotation": V1AuditAnnotation, @@ -1304,6 +1492,7 @@ let typeMap: {[index: string]: any} = { "V1AzureFileVolumeSource": V1AzureFileVolumeSource, "V1Binding": V1Binding, "V1BoundObjectReference": V1BoundObjectReference, + "V1CELDeviceSelector": V1CELDeviceSelector, "V1CSIDriver": V1CSIDriver, "V1CSIDriverList": V1CSIDriverList, "V1CSIDriverSpec": V1CSIDriverSpec, @@ -1316,6 +1505,9 @@ let typeMap: {[index: string]: any} = { "V1CSIStorageCapacityList": V1CSIStorageCapacityList, "V1CSIVolumeSource": V1CSIVolumeSource, "V1Capabilities": V1Capabilities, + "V1CapacityRequestPolicy": V1CapacityRequestPolicy, + "V1CapacityRequestPolicyRange": V1CapacityRequestPolicyRange, + "V1CapacityRequirements": V1CapacityRequirements, "V1CephFSPersistentVolumeSource": V1CephFSPersistentVolumeSource, "V1CephFSVolumeSource": V1CephFSVolumeSource, "V1CertificateSigningRequest": V1CertificateSigningRequest, @@ -1343,9 +1535,12 @@ let typeMap: {[index: string]: any} = { "V1ConfigMapProjection": V1ConfigMapProjection, "V1ConfigMapVolumeSource": V1ConfigMapVolumeSource, "V1Container": V1Container, + "V1ContainerExtendedResourceRequest": V1ContainerExtendedResourceRequest, "V1ContainerImage": V1ContainerImage, "V1ContainerPort": V1ContainerPort, "V1ContainerResizePolicy": V1ContainerResizePolicy, + "V1ContainerRestartRule": V1ContainerRestartRule, + "V1ContainerRestartRuleOnExitCodes": V1ContainerRestartRuleOnExitCodes, "V1ContainerState": V1ContainerState, "V1ContainerStateRunning": V1ContainerStateRunning, "V1ContainerStateTerminated": V1ContainerStateTerminated, @@ -1354,6 +1549,8 @@ let typeMap: {[index: string]: any} = { "V1ContainerUser": V1ContainerUser, "V1ControllerRevision": V1ControllerRevision, "V1ControllerRevisionList": V1ControllerRevisionList, + "V1Counter": V1Counter, + "V1CounterSet": V1CounterSet, "V1CronJob": V1CronJob, "V1CronJobList": V1CronJobList, "V1CronJobSpec": V1CronJobSpec, @@ -1385,6 +1582,25 @@ let typeMap: {[index: string]: any} = { "V1DeploymentSpec": V1DeploymentSpec, "V1DeploymentStatus": V1DeploymentStatus, "V1DeploymentStrategy": V1DeploymentStrategy, + "V1Device": V1Device, + "V1DeviceAllocationConfiguration": V1DeviceAllocationConfiguration, + "V1DeviceAllocationResult": V1DeviceAllocationResult, + "V1DeviceAttribute": V1DeviceAttribute, + "V1DeviceCapacity": V1DeviceCapacity, + "V1DeviceClaim": V1DeviceClaim, + "V1DeviceClaimConfiguration": V1DeviceClaimConfiguration, + "V1DeviceClass": V1DeviceClass, + "V1DeviceClassConfiguration": V1DeviceClassConfiguration, + "V1DeviceClassList": V1DeviceClassList, + "V1DeviceClassSpec": V1DeviceClassSpec, + "V1DeviceConstraint": V1DeviceConstraint, + "V1DeviceCounterConsumption": V1DeviceCounterConsumption, + "V1DeviceRequest": V1DeviceRequest, + "V1DeviceRequestAllocationResult": V1DeviceRequestAllocationResult, + "V1DeviceSelector": V1DeviceSelector, + "V1DeviceSubRequest": V1DeviceSubRequest, + "V1DeviceTaint": V1DeviceTaint, + "V1DeviceToleration": V1DeviceToleration, "V1DownwardAPIProjection": V1DownwardAPIProjection, "V1DownwardAPIVolumeFile": V1DownwardAPIVolumeFile, "V1DownwardAPIVolumeSource": V1DownwardAPIVolumeSource, @@ -1405,6 +1621,7 @@ let typeMap: {[index: string]: any} = { "V1EphemeralVolumeSource": V1EphemeralVolumeSource, "V1EventSource": V1EventSource, "V1Eviction": V1Eviction, + "V1ExactDeviceRequest": V1ExactDeviceRequest, "V1ExecAction": V1ExecAction, "V1ExemptPriorityLevelConfiguration": V1ExemptPriorityLevelConfiguration, "V1ExpressionWarning": V1ExpressionWarning, @@ -1412,6 +1629,7 @@ let typeMap: {[index: string]: any} = { "V1FCVolumeSource": V1FCVolumeSource, "V1FieldSelectorAttributes": V1FieldSelectorAttributes, "V1FieldSelectorRequirement": V1FieldSelectorRequirement, + "V1FileKeySelector": V1FileKeySelector, "V1FlexPersistentVolumeSource": V1FlexPersistentVolumeSource, "V1FlexVolumeSource": V1FlexVolumeSource, "V1FlockerVolumeSource": V1FlockerVolumeSource, @@ -1421,6 +1639,7 @@ let typeMap: {[index: string]: any} = { "V1FlowSchemaList": V1FlowSchemaList, "V1FlowSchemaSpec": V1FlowSchemaSpec, "V1FlowSchemaStatus": V1FlowSchemaStatus, + "V1ForNode": V1ForNode, "V1ForZone": V1ForZone, "V1GCEPersistentDiskVolumeSource": V1GCEPersistentDiskVolumeSource, "V1GRPCAction": V1GRPCAction, @@ -1440,6 +1659,9 @@ let typeMap: {[index: string]: any} = { "V1HostAlias": V1HostAlias, "V1HostIP": V1HostIP, "V1HostPathVolumeSource": V1HostPathVolumeSource, + "V1IPAddress": V1IPAddress, + "V1IPAddressList": V1IPAddressList, + "V1IPAddressSpec": V1IPAddressSpec, "V1IPBlock": V1IPBlock, "V1ISCSIPersistentVolumeSource": V1ISCSIPersistentVolumeSource, "V1ISCSIVolumeSource": V1ISCSIVolumeSource, @@ -1502,6 +1724,7 @@ let typeMap: {[index: string]: any} = { "V1NamespaceList": V1NamespaceList, "V1NamespaceSpec": V1NamespaceSpec, "V1NamespaceStatus": V1NamespaceStatus, + "V1NetworkDeviceData": V1NetworkDeviceData, "V1NetworkPolicy": V1NetworkPolicy, "V1NetworkPolicyEgressRule": V1NetworkPolicyEgressRule, "V1NetworkPolicyIngressRule": V1NetworkPolicyIngressRule, @@ -1525,6 +1748,7 @@ let typeMap: {[index: string]: any} = { "V1NodeSelectorTerm": V1NodeSelectorTerm, "V1NodeSpec": V1NodeSpec, "V1NodeStatus": V1NodeStatus, + "V1NodeSwapStatus": V1NodeSwapStatus, "V1NodeSystemInfo": V1NodeSystemInfo, "V1NonResourceAttributes": V1NonResourceAttributes, "V1NonResourcePolicyRule": V1NonResourcePolicyRule, @@ -1532,10 +1756,12 @@ let typeMap: {[index: string]: any} = { "V1ObjectFieldSelector": V1ObjectFieldSelector, "V1ObjectMeta": V1ObjectMeta, "V1ObjectReference": V1ObjectReference, + "V1OpaqueDeviceConfiguration": V1OpaqueDeviceConfiguration, "V1Overhead": V1Overhead, "V1OwnerReference": V1OwnerReference, "V1ParamKind": V1ParamKind, "V1ParamRef": V1ParamRef, + "V1ParentReference": V1ParentReference, "V1PersistentVolume": V1PersistentVolume, "V1PersistentVolumeClaim": V1PersistentVolumeClaim, "V1PersistentVolumeClaimCondition": V1PersistentVolumeClaimCondition, @@ -1552,6 +1778,7 @@ let typeMap: {[index: string]: any} = { "V1PodAffinity": V1PodAffinity, "V1PodAffinityTerm": V1PodAffinityTerm, "V1PodAntiAffinity": V1PodAntiAffinity, + "V1PodCertificateProjection": V1PodCertificateProjection, "V1PodCondition": V1PodCondition, "V1PodDNSConfig": V1PodDNSConfig, "V1PodDNSConfigOption": V1PodDNSConfigOption, @@ -1559,6 +1786,7 @@ let typeMap: {[index: string]: any} = { "V1PodDisruptionBudgetList": V1PodDisruptionBudgetList, "V1PodDisruptionBudgetSpec": V1PodDisruptionBudgetSpec, "V1PodDisruptionBudgetStatus": V1PodDisruptionBudgetStatus, + "V1PodExtendedResourceClaimStatus": V1PodExtendedResourceClaimStatus, "V1PodFailurePolicy": V1PodFailurePolicy, "V1PodFailurePolicyOnExitCodesRequirement": V1PodFailurePolicyOnExitCodesRequirement, "V1PodFailurePolicyOnPodConditionsPattern": V1PodFailurePolicyOnPodConditionsPattern, @@ -1607,16 +1835,26 @@ let typeMap: {[index: string]: any} = { "V1ReplicationControllerSpec": V1ReplicationControllerSpec, "V1ReplicationControllerStatus": V1ReplicationControllerStatus, "V1ResourceAttributes": V1ResourceAttributes, - "V1ResourceClaim": V1ResourceClaim, + "V1ResourceClaimConsumerReference": V1ResourceClaimConsumerReference, + "V1ResourceClaimList": V1ResourceClaimList, + "V1ResourceClaimSpec": V1ResourceClaimSpec, + "V1ResourceClaimStatus": V1ResourceClaimStatus, + "V1ResourceClaimTemplate": V1ResourceClaimTemplate, + "V1ResourceClaimTemplateList": V1ResourceClaimTemplateList, + "V1ResourceClaimTemplateSpec": V1ResourceClaimTemplateSpec, "V1ResourceFieldSelector": V1ResourceFieldSelector, "V1ResourceHealth": V1ResourceHealth, "V1ResourcePolicyRule": V1ResourcePolicyRule, + "V1ResourcePool": V1ResourcePool, "V1ResourceQuota": V1ResourceQuota, "V1ResourceQuotaList": V1ResourceQuotaList, "V1ResourceQuotaSpec": V1ResourceQuotaSpec, "V1ResourceQuotaStatus": V1ResourceQuotaStatus, "V1ResourceRequirements": V1ResourceRequirements, "V1ResourceRule": V1ResourceRule, + "V1ResourceSlice": V1ResourceSlice, + "V1ResourceSliceList": V1ResourceSliceList, + "V1ResourceSliceSpec": V1ResourceSliceSpec, "V1ResourceStatus": V1ResourceStatus, "V1Role": V1Role, "V1RoleBinding": V1RoleBinding, @@ -1661,6 +1899,10 @@ let typeMap: {[index: string]: any} = { "V1ServiceAccountSubject": V1ServiceAccountSubject, "V1ServiceAccountTokenProjection": V1ServiceAccountTokenProjection, "V1ServiceBackendPort": V1ServiceBackendPort, + "V1ServiceCIDR": V1ServiceCIDR, + "V1ServiceCIDRList": V1ServiceCIDRList, + "V1ServiceCIDRSpec": V1ServiceCIDRSpec, + "V1ServiceCIDRStatus": V1ServiceCIDRStatus, "V1ServiceList": V1ServiceList, "V1ServicePort": V1ServicePort, "V1ServiceSpec": V1ServiceSpec, @@ -1725,6 +1967,8 @@ let typeMap: {[index: string]: any} = { "V1VolumeAttachmentSource": V1VolumeAttachmentSource, "V1VolumeAttachmentSpec": V1VolumeAttachmentSpec, "V1VolumeAttachmentStatus": V1VolumeAttachmentStatus, + "V1VolumeAttributesClass": V1VolumeAttributesClass, + "V1VolumeAttributesClassList": V1VolumeAttributesClassList, "V1VolumeDevice": V1VolumeDevice, "V1VolumeError": V1VolumeError, "V1VolumeMount": V1VolumeMount, @@ -1757,6 +2001,10 @@ let typeMap: {[index: string]: any} = { "V1alpha1NamedRuleWithOperations": V1alpha1NamedRuleWithOperations, "V1alpha1ParamKind": V1alpha1ParamKind, "V1alpha1ParamRef": V1alpha1ParamRef, + "V1alpha1PodCertificateRequest": V1alpha1PodCertificateRequest, + "V1alpha1PodCertificateRequestList": V1alpha1PodCertificateRequestList, + "V1alpha1PodCertificateRequestSpec": V1alpha1PodCertificateRequestSpec, + "V1alpha1PodCertificateRequestStatus": V1alpha1PodCertificateRequestStatus, "V1alpha1ServerStorageVersion": V1alpha1ServerStorageVersion, "V1alpha1StorageVersion": V1alpha1StorageVersion, "V1alpha1StorageVersionCondition": V1alpha1StorageVersionCondition, @@ -1772,43 +2020,26 @@ let typeMap: {[index: string]: any} = { "V1alpha2LeaseCandidate": V1alpha2LeaseCandidate, "V1alpha2LeaseCandidateList": V1alpha2LeaseCandidateList, "V1alpha2LeaseCandidateSpec": V1alpha2LeaseCandidateSpec, - "V1alpha3AllocatedDeviceStatus": V1alpha3AllocatedDeviceStatus, - "V1alpha3AllocationResult": V1alpha3AllocationResult, - "V1alpha3BasicDevice": V1alpha3BasicDevice, "V1alpha3CELDeviceSelector": V1alpha3CELDeviceSelector, - "V1alpha3Device": V1alpha3Device, - "V1alpha3DeviceAllocationConfiguration": V1alpha3DeviceAllocationConfiguration, - "V1alpha3DeviceAllocationResult": V1alpha3DeviceAllocationResult, - "V1alpha3DeviceAttribute": V1alpha3DeviceAttribute, - "V1alpha3DeviceClaim": V1alpha3DeviceClaim, - "V1alpha3DeviceClaimConfiguration": V1alpha3DeviceClaimConfiguration, - "V1alpha3DeviceClass": V1alpha3DeviceClass, - "V1alpha3DeviceClassConfiguration": V1alpha3DeviceClassConfiguration, - "V1alpha3DeviceClassList": V1alpha3DeviceClassList, - "V1alpha3DeviceClassSpec": V1alpha3DeviceClassSpec, - "V1alpha3DeviceConstraint": V1alpha3DeviceConstraint, - "V1alpha3DeviceRequest": V1alpha3DeviceRequest, - "V1alpha3DeviceRequestAllocationResult": V1alpha3DeviceRequestAllocationResult, "V1alpha3DeviceSelector": V1alpha3DeviceSelector, - "V1alpha3NetworkDeviceData": V1alpha3NetworkDeviceData, - "V1alpha3OpaqueDeviceConfiguration": V1alpha3OpaqueDeviceConfiguration, - "V1alpha3ResourceClaim": V1alpha3ResourceClaim, - "V1alpha3ResourceClaimConsumerReference": V1alpha3ResourceClaimConsumerReference, - "V1alpha3ResourceClaimList": V1alpha3ResourceClaimList, - "V1alpha3ResourceClaimSpec": V1alpha3ResourceClaimSpec, - "V1alpha3ResourceClaimStatus": V1alpha3ResourceClaimStatus, - "V1alpha3ResourceClaimTemplate": V1alpha3ResourceClaimTemplate, - "V1alpha3ResourceClaimTemplateList": V1alpha3ResourceClaimTemplateList, - "V1alpha3ResourceClaimTemplateSpec": V1alpha3ResourceClaimTemplateSpec, - "V1alpha3ResourcePool": V1alpha3ResourcePool, - "V1alpha3ResourceSlice": V1alpha3ResourceSlice, - "V1alpha3ResourceSliceList": V1alpha3ResourceSliceList, - "V1alpha3ResourceSliceSpec": V1alpha3ResourceSliceSpec, + "V1alpha3DeviceTaint": V1alpha3DeviceTaint, + "V1alpha3DeviceTaintRule": V1alpha3DeviceTaintRule, + "V1alpha3DeviceTaintRuleList": V1alpha3DeviceTaintRuleList, + "V1alpha3DeviceTaintRuleSpec": V1alpha3DeviceTaintRuleSpec, + "V1alpha3DeviceTaintSelector": V1alpha3DeviceTaintSelector, "V1beta1AllocatedDeviceStatus": V1beta1AllocatedDeviceStatus, "V1beta1AllocationResult": V1beta1AllocationResult, - "V1beta1AuditAnnotation": V1beta1AuditAnnotation, + "V1beta1ApplyConfiguration": V1beta1ApplyConfiguration, "V1beta1BasicDevice": V1beta1BasicDevice, "V1beta1CELDeviceSelector": V1beta1CELDeviceSelector, + "V1beta1CapacityRequestPolicy": V1beta1CapacityRequestPolicy, + "V1beta1CapacityRequestPolicyRange": V1beta1CapacityRequestPolicyRange, + "V1beta1CapacityRequirements": V1beta1CapacityRequirements, + "V1beta1ClusterTrustBundle": V1beta1ClusterTrustBundle, + "V1beta1ClusterTrustBundleList": V1beta1ClusterTrustBundleList, + "V1beta1ClusterTrustBundleSpec": V1beta1ClusterTrustBundleSpec, + "V1beta1Counter": V1beta1Counter, + "V1beta1CounterSet": V1beta1CounterSet, "V1beta1Device": V1beta1Device, "V1beta1DeviceAllocationConfiguration": V1beta1DeviceAllocationConfiguration, "V1beta1DeviceAllocationResult": V1beta1DeviceAllocationResult, @@ -1821,15 +2052,29 @@ let typeMap: {[index: string]: any} = { "V1beta1DeviceClassList": V1beta1DeviceClassList, "V1beta1DeviceClassSpec": V1beta1DeviceClassSpec, "V1beta1DeviceConstraint": V1beta1DeviceConstraint, + "V1beta1DeviceCounterConsumption": V1beta1DeviceCounterConsumption, "V1beta1DeviceRequest": V1beta1DeviceRequest, "V1beta1DeviceRequestAllocationResult": V1beta1DeviceRequestAllocationResult, "V1beta1DeviceSelector": V1beta1DeviceSelector, - "V1beta1ExpressionWarning": V1beta1ExpressionWarning, + "V1beta1DeviceSubRequest": V1beta1DeviceSubRequest, + "V1beta1DeviceTaint": V1beta1DeviceTaint, + "V1beta1DeviceToleration": V1beta1DeviceToleration, "V1beta1IPAddress": V1beta1IPAddress, "V1beta1IPAddressList": V1beta1IPAddressList, "V1beta1IPAddressSpec": V1beta1IPAddressSpec, + "V1beta1JSONPatch": V1beta1JSONPatch, + "V1beta1LeaseCandidate": V1beta1LeaseCandidate, + "V1beta1LeaseCandidateList": V1beta1LeaseCandidateList, + "V1beta1LeaseCandidateSpec": V1beta1LeaseCandidateSpec, "V1beta1MatchCondition": V1beta1MatchCondition, "V1beta1MatchResources": V1beta1MatchResources, + "V1beta1MutatingAdmissionPolicy": V1beta1MutatingAdmissionPolicy, + "V1beta1MutatingAdmissionPolicyBinding": V1beta1MutatingAdmissionPolicyBinding, + "V1beta1MutatingAdmissionPolicyBindingList": V1beta1MutatingAdmissionPolicyBindingList, + "V1beta1MutatingAdmissionPolicyBindingSpec": V1beta1MutatingAdmissionPolicyBindingSpec, + "V1beta1MutatingAdmissionPolicyList": V1beta1MutatingAdmissionPolicyList, + "V1beta1MutatingAdmissionPolicySpec": V1beta1MutatingAdmissionPolicySpec, + "V1beta1Mutation": V1beta1Mutation, "V1beta1NamedRuleWithOperations": V1beta1NamedRuleWithOperations, "V1beta1NetworkDeviceData": V1beta1NetworkDeviceData, "V1beta1OpaqueDeviceConfiguration": V1beta1OpaqueDeviceConfiguration, @@ -1848,24 +2093,55 @@ let typeMap: {[index: string]: any} = { "V1beta1ResourceSlice": V1beta1ResourceSlice, "V1beta1ResourceSliceList": V1beta1ResourceSliceList, "V1beta1ResourceSliceSpec": V1beta1ResourceSliceSpec, - "V1beta1SelfSubjectReview": V1beta1SelfSubjectReview, - "V1beta1SelfSubjectReviewStatus": V1beta1SelfSubjectReviewStatus, "V1beta1ServiceCIDR": V1beta1ServiceCIDR, "V1beta1ServiceCIDRList": V1beta1ServiceCIDRList, "V1beta1ServiceCIDRSpec": V1beta1ServiceCIDRSpec, "V1beta1ServiceCIDRStatus": V1beta1ServiceCIDRStatus, - "V1beta1TypeChecking": V1beta1TypeChecking, - "V1beta1ValidatingAdmissionPolicy": V1beta1ValidatingAdmissionPolicy, - "V1beta1ValidatingAdmissionPolicyBinding": V1beta1ValidatingAdmissionPolicyBinding, - "V1beta1ValidatingAdmissionPolicyBindingList": V1beta1ValidatingAdmissionPolicyBindingList, - "V1beta1ValidatingAdmissionPolicyBindingSpec": V1beta1ValidatingAdmissionPolicyBindingSpec, - "V1beta1ValidatingAdmissionPolicyList": V1beta1ValidatingAdmissionPolicyList, - "V1beta1ValidatingAdmissionPolicySpec": V1beta1ValidatingAdmissionPolicySpec, - "V1beta1ValidatingAdmissionPolicyStatus": V1beta1ValidatingAdmissionPolicyStatus, - "V1beta1Validation": V1beta1Validation, "V1beta1Variable": V1beta1Variable, "V1beta1VolumeAttributesClass": V1beta1VolumeAttributesClass, "V1beta1VolumeAttributesClassList": V1beta1VolumeAttributesClassList, + "V1beta2AllocatedDeviceStatus": V1beta2AllocatedDeviceStatus, + "V1beta2AllocationResult": V1beta2AllocationResult, + "V1beta2CELDeviceSelector": V1beta2CELDeviceSelector, + "V1beta2CapacityRequestPolicy": V1beta2CapacityRequestPolicy, + "V1beta2CapacityRequestPolicyRange": V1beta2CapacityRequestPolicyRange, + "V1beta2CapacityRequirements": V1beta2CapacityRequirements, + "V1beta2Counter": V1beta2Counter, + "V1beta2CounterSet": V1beta2CounterSet, + "V1beta2Device": V1beta2Device, + "V1beta2DeviceAllocationConfiguration": V1beta2DeviceAllocationConfiguration, + "V1beta2DeviceAllocationResult": V1beta2DeviceAllocationResult, + "V1beta2DeviceAttribute": V1beta2DeviceAttribute, + "V1beta2DeviceCapacity": V1beta2DeviceCapacity, + "V1beta2DeviceClaim": V1beta2DeviceClaim, + "V1beta2DeviceClaimConfiguration": V1beta2DeviceClaimConfiguration, + "V1beta2DeviceClass": V1beta2DeviceClass, + "V1beta2DeviceClassConfiguration": V1beta2DeviceClassConfiguration, + "V1beta2DeviceClassList": V1beta2DeviceClassList, + "V1beta2DeviceClassSpec": V1beta2DeviceClassSpec, + "V1beta2DeviceConstraint": V1beta2DeviceConstraint, + "V1beta2DeviceCounterConsumption": V1beta2DeviceCounterConsumption, + "V1beta2DeviceRequest": V1beta2DeviceRequest, + "V1beta2DeviceRequestAllocationResult": V1beta2DeviceRequestAllocationResult, + "V1beta2DeviceSelector": V1beta2DeviceSelector, + "V1beta2DeviceSubRequest": V1beta2DeviceSubRequest, + "V1beta2DeviceTaint": V1beta2DeviceTaint, + "V1beta2DeviceToleration": V1beta2DeviceToleration, + "V1beta2ExactDeviceRequest": V1beta2ExactDeviceRequest, + "V1beta2NetworkDeviceData": V1beta2NetworkDeviceData, + "V1beta2OpaqueDeviceConfiguration": V1beta2OpaqueDeviceConfiguration, + "V1beta2ResourceClaim": V1beta2ResourceClaim, + "V1beta2ResourceClaimConsumerReference": V1beta2ResourceClaimConsumerReference, + "V1beta2ResourceClaimList": V1beta2ResourceClaimList, + "V1beta2ResourceClaimSpec": V1beta2ResourceClaimSpec, + "V1beta2ResourceClaimStatus": V1beta2ResourceClaimStatus, + "V1beta2ResourceClaimTemplate": V1beta2ResourceClaimTemplate, + "V1beta2ResourceClaimTemplateList": V1beta2ResourceClaimTemplateList, + "V1beta2ResourceClaimTemplateSpec": V1beta2ResourceClaimTemplateSpec, + "V1beta2ResourcePool": V1beta2ResourcePool, + "V1beta2ResourceSlice": V1beta2ResourceSlice, + "V1beta2ResourceSliceList": V1beta2ResourceSliceList, + "V1beta2ResourceSliceSpec": V1beta2ResourceSliceSpec, "V2ContainerResourceMetricSource": V2ContainerResourceMetricSource, "V2ContainerResourceMetricStatus": V2ContainerResourceMetricStatus, "V2CrossVersionObjectReference": V2CrossVersionObjectReference, @@ -2021,13 +2297,16 @@ export class ObjectSerializer { } return transformedData; } else if (type === "Date") { + if (!(data instanceof Date)) { + return data; + } if (format == "date") { let month = data.getMonth()+1 - month = month < 10 ? "0" + month.toString() : month.toString() + let monthStr = month < 10 ? "0" + month.toString() : month.toString() let day = data.getDate(); - day = day < 10 ? "0" + day.toString() : day.toString(); + let dayStr = day < 10 ? "0" + day.toString() : day.toString(); - return data.getFullYear() + "-" + month + "-" + day; + return data.getFullYear() + "-" + monthStr + "-" + dayStr; } else { return data.toISOString(); } diff --git a/src/gen/models/RbacV1Subject.ts b/src/gen/models/RbacV1Subject.ts index 2a8df27ac8..cbd25197f6 100644 --- a/src/gen/models/RbacV1Subject.ts +++ b/src/gen/models/RbacV1Subject.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/ResourceV1ResourceClaim.ts b/src/gen/models/ResourceV1ResourceClaim.ts new file mode 100644 index 0000000000..9d4d549191 --- /dev/null +++ b/src/gen/models/ResourceV1ResourceClaim.ts @@ -0,0 +1,76 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1ObjectMeta } from '../models/V1ObjectMeta.js'; +import { V1ResourceClaimSpec } from '../models/V1ResourceClaimSpec.js'; +import { V1ResourceClaimStatus } from '../models/V1ResourceClaimStatus.js'; +import { HttpFile } from '../http/http.js'; + +/** +* ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. +*/ +export class ResourceV1ResourceClaim { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + */ + 'apiVersion'?: string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + */ + 'kind'?: string; + 'metadata'?: V1ObjectMeta; + 'spec': V1ResourceClaimSpec; + 'status'?: V1ResourceClaimStatus; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "apiVersion", + "baseName": "apiVersion", + "type": "string", + "format": "" + }, + { + "name": "kind", + "baseName": "kind", + "type": "string", + "format": "" + }, + { + "name": "metadata", + "baseName": "metadata", + "type": "V1ObjectMeta", + "format": "" + }, + { + "name": "spec", + "baseName": "spec", + "type": "V1ResourceClaimSpec", + "format": "" + }, + { + "name": "status", + "baseName": "status", + "type": "V1ResourceClaimStatus", + "format": "" + } ]; + + static getAttributeTypeMap() { + return ResourceV1ResourceClaim.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/StorageV1TokenRequest.ts b/src/gen/models/StorageV1TokenRequest.ts index 13a3910834..e35b2f3f87 100644 --- a/src/gen/models/StorageV1TokenRequest.ts +++ b/src/gen/models/StorageV1TokenRequest.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1APIGroup.ts b/src/gen/models/V1APIGroup.ts index e004cc7ebe..4b3c64ac03 100644 --- a/src/gen/models/V1APIGroup.ts +++ b/src/gen/models/V1APIGroup.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1APIGroupList.ts b/src/gen/models/V1APIGroupList.ts index 9d9db06756..f177fa3bda 100644 --- a/src/gen/models/V1APIGroupList.ts +++ b/src/gen/models/V1APIGroupList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1APIResource.ts b/src/gen/models/V1APIResource.ts index 1473d652e4..5465c67676 100644 --- a/src/gen/models/V1APIResource.ts +++ b/src/gen/models/V1APIResource.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1APIResourceList.ts b/src/gen/models/V1APIResourceList.ts index 7a68bcb189..0d649e41f8 100644 --- a/src/gen/models/V1APIResourceList.ts +++ b/src/gen/models/V1APIResourceList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1APIService.ts b/src/gen/models/V1APIService.ts index b1ecd458e5..26290874fd 100644 --- a/src/gen/models/V1APIService.ts +++ b/src/gen/models/V1APIService.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1APIServiceCondition.ts b/src/gen/models/V1APIServiceCondition.ts index 1328a7f790..11ee72a98a 100644 --- a/src/gen/models/V1APIServiceCondition.ts +++ b/src/gen/models/V1APIServiceCondition.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1APIServiceList.ts b/src/gen/models/V1APIServiceList.ts index 833473cc30..e75c9dc5bc 100644 --- a/src/gen/models/V1APIServiceList.ts +++ b/src/gen/models/V1APIServiceList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1APIServiceSpec.ts b/src/gen/models/V1APIServiceSpec.ts index 53efbc925e..bcf99af6b8 100644 --- a/src/gen/models/V1APIServiceSpec.ts +++ b/src/gen/models/V1APIServiceSpec.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1APIServiceStatus.ts b/src/gen/models/V1APIServiceStatus.ts index 1ce480c182..67adb94dbd 100644 --- a/src/gen/models/V1APIServiceStatus.ts +++ b/src/gen/models/V1APIServiceStatus.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1APIVersions.ts b/src/gen/models/V1APIVersions.ts index b5368159d1..f9333a9575 100644 --- a/src/gen/models/V1APIVersions.ts +++ b/src/gen/models/V1APIVersions.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1AWSElasticBlockStoreVolumeSource.ts b/src/gen/models/V1AWSElasticBlockStoreVolumeSource.ts index 7191d28fb3..3e52a1a4c4 100644 --- a/src/gen/models/V1AWSElasticBlockStoreVolumeSource.ts +++ b/src/gen/models/V1AWSElasticBlockStoreVolumeSource.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1Affinity.ts b/src/gen/models/V1Affinity.ts index e3d7a31637..3704e7066e 100644 --- a/src/gen/models/V1Affinity.ts +++ b/src/gen/models/V1Affinity.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1AggregationRule.ts b/src/gen/models/V1AggregationRule.ts index 1fb4910286..e43049efa2 100644 --- a/src/gen/models/V1AggregationRule.ts +++ b/src/gen/models/V1AggregationRule.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1AllocatedDeviceStatus.ts b/src/gen/models/V1AllocatedDeviceStatus.ts new file mode 100644 index 0000000000..aab5923288 --- /dev/null +++ b/src/gen/models/V1AllocatedDeviceStatus.ts @@ -0,0 +1,101 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1Condition } from '../models/V1Condition.js'; +import { V1NetworkDeviceData } from '../models/V1NetworkDeviceData.js'; +import { HttpFile } from '../http/http.js'; + +/** +* AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information. The combination of Driver, Pool, Device, and ShareID must match the corresponding key in Status.Allocation.Devices. +*/ +export class V1AllocatedDeviceStatus { + /** + * Conditions contains the latest observation of the device\'s state. If the device has been configured according to the class and claim config references, the `Ready` condition should be True. Must not contain more than 8 entries. + */ + 'conditions'?: Array; + /** + * Data contains arbitrary driver-specific data. The length of the raw data must be smaller or equal to 10 Ki. + */ + 'data'?: any; + /** + * Device references one device instance via its name in the driver\'s resource pool. It must be a DNS label. + */ + 'device': string; + /** + * Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. + */ + 'driver': string; + 'networkData'?: V1NetworkDeviceData; + /** + * This name together with the driver name and the device name field identify which device was allocated (`//`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. + */ + 'pool': string; + /** + * ShareID uniquely identifies an individual allocation share of the device. + */ + 'shareID'?: string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "conditions", + "baseName": "conditions", + "type": "Array", + "format": "" + }, + { + "name": "data", + "baseName": "data", + "type": "any", + "format": "" + }, + { + "name": "device", + "baseName": "device", + "type": "string", + "format": "" + }, + { + "name": "driver", + "baseName": "driver", + "type": "string", + "format": "" + }, + { + "name": "networkData", + "baseName": "networkData", + "type": "V1NetworkDeviceData", + "format": "" + }, + { + "name": "pool", + "baseName": "pool", + "type": "string", + "format": "" + }, + { + "name": "shareID", + "baseName": "shareID", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1AllocatedDeviceStatus.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1AllocationResult.ts b/src/gen/models/V1AllocationResult.ts new file mode 100644 index 0000000000..b8480d8dce --- /dev/null +++ b/src/gen/models/V1AllocationResult.ts @@ -0,0 +1,58 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1DeviceAllocationResult } from '../models/V1DeviceAllocationResult.js'; +import { V1NodeSelector } from '../models/V1NodeSelector.js'; +import { HttpFile } from '../http/http.js'; + +/** +* AllocationResult contains attributes of an allocated resource. +*/ +export class V1AllocationResult { + /** + * AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. + */ + 'allocationTimestamp'?: Date; + 'devices'?: V1DeviceAllocationResult; + 'nodeSelector'?: V1NodeSelector; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "allocationTimestamp", + "baseName": "allocationTimestamp", + "type": "Date", + "format": "date-time" + }, + { + "name": "devices", + "baseName": "devices", + "type": "V1DeviceAllocationResult", + "format": "" + }, + { + "name": "nodeSelector", + "baseName": "nodeSelector", + "type": "V1NodeSelector", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1AllocationResult.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1AppArmorProfile.ts b/src/gen/models/V1AppArmorProfile.ts index a39786b99a..cb129b4a82 100644 --- a/src/gen/models/V1AppArmorProfile.ts +++ b/src/gen/models/V1AppArmorProfile.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1AttachedVolume.ts b/src/gen/models/V1AttachedVolume.ts index f46fc5c42f..a37d10362d 100644 --- a/src/gen/models/V1AttachedVolume.ts +++ b/src/gen/models/V1AttachedVolume.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1AuditAnnotation.ts b/src/gen/models/V1AuditAnnotation.ts index 7c9e7f03ee..5846fc50eb 100644 --- a/src/gen/models/V1AuditAnnotation.ts +++ b/src/gen/models/V1AuditAnnotation.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1AzureDiskVolumeSource.ts b/src/gen/models/V1AzureDiskVolumeSource.ts index 4a6ec9364d..22ea3aa0d8 100644 --- a/src/gen/models/V1AzureDiskVolumeSource.ts +++ b/src/gen/models/V1AzureDiskVolumeSource.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1AzureFilePersistentVolumeSource.ts b/src/gen/models/V1AzureFilePersistentVolumeSource.ts index 4d5acfe5a0..2bf91ae03a 100644 --- a/src/gen/models/V1AzureFilePersistentVolumeSource.ts +++ b/src/gen/models/V1AzureFilePersistentVolumeSource.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1AzureFileVolumeSource.ts b/src/gen/models/V1AzureFileVolumeSource.ts index a4c2d9ae20..68353ba63e 100644 --- a/src/gen/models/V1AzureFileVolumeSource.ts +++ b/src/gen/models/V1AzureFileVolumeSource.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1Binding.ts b/src/gen/models/V1Binding.ts index e83cea51e9..c8e29b68fe 100644 --- a/src/gen/models/V1Binding.ts +++ b/src/gen/models/V1Binding.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1BoundObjectReference.ts b/src/gen/models/V1BoundObjectReference.ts index ba7d3f7bd9..f353a2057a 100644 --- a/src/gen/models/V1BoundObjectReference.ts +++ b/src/gen/models/V1BoundObjectReference.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CELDeviceSelector.ts b/src/gen/models/V1CELDeviceSelector.ts new file mode 100644 index 0000000000..3478173156 --- /dev/null +++ b/src/gen/models/V1CELDeviceSelector.ts @@ -0,0 +1,42 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http.js'; + +/** +* CELDeviceSelector contains a CEL expression for selecting a device. +*/ +export class V1CELDeviceSelector { + /** + * Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. The expression\'s input is an object named \"device\", which carries the following properties: - driver (string): the name of the driver which defines this device. - attributes (map[string]object): the device\'s attributes, grouped by prefix (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all of the attributes which were prefixed by \"dra.example.com\". - capacity (map[string]object): the device\'s capacities, grouped by prefix. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). Example: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields: device.driver device.attributes[\"dra.example.com\"].model device.attributes[\"ext.example.com\"].family device.capacity[\"dra.example.com\"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool) The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. + */ + 'expression': string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "expression", + "baseName": "expression", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1CELDeviceSelector.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1CSIDriver.ts b/src/gen/models/V1CSIDriver.ts index bb94ca5531..c8243b45ee 100644 --- a/src/gen/models/V1CSIDriver.ts +++ b/src/gen/models/V1CSIDriver.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CSIDriverList.ts b/src/gen/models/V1CSIDriverList.ts index 0a5721ab36..ecae18566d 100644 --- a/src/gen/models/V1CSIDriverList.ts +++ b/src/gen/models/V1CSIDriverList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CSIDriverSpec.ts b/src/gen/models/V1CSIDriverSpec.ts index 4b1a64c87d..868d8307bc 100644 --- a/src/gen/models/V1CSIDriverSpec.ts +++ b/src/gen/models/V1CSIDriverSpec.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -18,7 +18,7 @@ import { HttpFile } from '../http/http.js'; */ export class V1CSIDriverSpec { /** - * attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. This field is immutable. + * attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. This field is immutable. */ 'attachRequired'?: boolean; /** @@ -26,6 +26,10 @@ export class V1CSIDriverSpec { */ 'fsGroupPolicy'?: string; /** + * nodeAllocatableUpdatePeriodSeconds specifies the interval between periodic updates of the CSINode allocatable capacity for this driver. When set, both periodic updates and updates triggered by capacity-related failures are enabled. If not set, no updates occur (neither periodic nor upon detecting capacity-related failures), and the allocatable.count remains static. The minimum allowed value for this field is 10 seconds. This is a beta feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled. This field is mutable. + */ + 'nodeAllocatableUpdatePeriodSeconds'?: number; + /** * podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations, if set to true. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeContext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. \"csi.storage.k8s.io/pod.name\": pod.Name \"csi.storage.k8s.io/pod.namespace\": pod.Namespace \"csi.storage.k8s.io/pod.uid\": string(pod.UID) \"csi.storage.k8s.io/ephemeral\": \"true\" if the volume is an ephemeral inline volume defined by a CSIVolumeSource, otherwise \"false\" \"csi.storage.k8s.io/ephemeral\" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the \"Persistent\" and \"Ephemeral\" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn\'t support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver. This field was immutable in Kubernetes < 1.29 and now is mutable. */ 'podInfoOnMount'?: boolean; @@ -67,6 +71,12 @@ export class V1CSIDriverSpec { "type": "string", "format": "" }, + { + "name": "nodeAllocatableUpdatePeriodSeconds", + "baseName": "nodeAllocatableUpdatePeriodSeconds", + "type": "number", + "format": "int64" + }, { "name": "podInfoOnMount", "baseName": "podInfoOnMount", diff --git a/src/gen/models/V1CSINode.ts b/src/gen/models/V1CSINode.ts index 024c34a1c0..aad7111591 100644 --- a/src/gen/models/V1CSINode.ts +++ b/src/gen/models/V1CSINode.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CSINodeDriver.ts b/src/gen/models/V1CSINodeDriver.ts index 99436ce919..43833e4c79 100644 --- a/src/gen/models/V1CSINodeDriver.ts +++ b/src/gen/models/V1CSINodeDriver.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CSINodeList.ts b/src/gen/models/V1CSINodeList.ts index 47e5e4515c..cf98c2f3c5 100644 --- a/src/gen/models/V1CSINodeList.ts +++ b/src/gen/models/V1CSINodeList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CSINodeSpec.ts b/src/gen/models/V1CSINodeSpec.ts index d3573c5871..4b44f128f3 100644 --- a/src/gen/models/V1CSINodeSpec.ts +++ b/src/gen/models/V1CSINodeSpec.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CSIPersistentVolumeSource.ts b/src/gen/models/V1CSIPersistentVolumeSource.ts index 33f71319e3..248c818f14 100644 --- a/src/gen/models/V1CSIPersistentVolumeSource.ts +++ b/src/gen/models/V1CSIPersistentVolumeSource.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CSIStorageCapacity.ts b/src/gen/models/V1CSIStorageCapacity.ts index b389ce0c04..1ab50b5186 100644 --- a/src/gen/models/V1CSIStorageCapacity.ts +++ b/src/gen/models/V1CSIStorageCapacity.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CSIStorageCapacityList.ts b/src/gen/models/V1CSIStorageCapacityList.ts index 958e2293cc..f5bafa7d3b 100644 --- a/src/gen/models/V1CSIStorageCapacityList.ts +++ b/src/gen/models/V1CSIStorageCapacityList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CSIVolumeSource.ts b/src/gen/models/V1CSIVolumeSource.ts index 7ca6f75f30..68a1ad5b5b 100644 --- a/src/gen/models/V1CSIVolumeSource.ts +++ b/src/gen/models/V1CSIVolumeSource.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1Capabilities.ts b/src/gen/models/V1Capabilities.ts index 3be3a14ddf..4a84f05d7a 100644 --- a/src/gen/models/V1Capabilities.ts +++ b/src/gen/models/V1Capabilities.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CapacityRequestPolicy.ts b/src/gen/models/V1CapacityRequestPolicy.ts new file mode 100644 index 0000000000..c94c3b7e6b --- /dev/null +++ b/src/gen/models/V1CapacityRequestPolicy.ts @@ -0,0 +1,60 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1CapacityRequestPolicyRange } from '../models/V1CapacityRequestPolicyRange.js'; +import { HttpFile } from '../http/http.js'; + +/** +* CapacityRequestPolicy defines how requests consume device capacity. Must not set more than one ValidRequestValues. +*/ +export class V1CapacityRequestPolicy { + /** + * Default specifies how much of this capacity is consumed by a request that does not contain an entry for it in DeviceRequest\'s Capacity. + */ + '_default'?: string; + 'validRange'?: V1CapacityRequestPolicyRange; + /** + * ValidValues defines a set of acceptable quantity values in consuming requests. Must not contain more than 10 entries. Must be sorted in ascending order. If this field is set, Default must be defined and it must be included in ValidValues list. If the requested amount does not match any valid value but smaller than some valid values, the scheduler calculates the smallest valid value that is greater than or equal to the request. That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues). If the requested amount exceeds all valid values, the request violates the policy, and this device cannot be allocated. + */ + 'validValues'?: Array; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "_default", + "baseName": "default", + "type": "string", + "format": "" + }, + { + "name": "validRange", + "baseName": "validRange", + "type": "V1CapacityRequestPolicyRange", + "format": "" + }, + { + "name": "validValues", + "baseName": "validValues", + "type": "Array", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1CapacityRequestPolicy.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1CapacityRequestPolicyRange.ts b/src/gen/models/V1CapacityRequestPolicyRange.ts new file mode 100644 index 0000000000..3afb756ba2 --- /dev/null +++ b/src/gen/models/V1CapacityRequestPolicyRange.ts @@ -0,0 +1,62 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http.js'; + +/** +* CapacityRequestPolicyRange defines a valid range for consumable capacity values. - If the requested amount is less than Min, it is rounded up to the Min value. - If Step is set and the requested amount is between Min and Max but not aligned with Step, it will be rounded up to the next value equal to Min + (n * Step). - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set). - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy, and the device cannot be allocated. +*/ +export class V1CapacityRequestPolicyRange { + /** + * Max defines the upper limit for capacity that can be requested. Max must be less than or equal to the capacity value. Min and requestPolicy.default must be less than or equal to the maximum. + */ + 'max'?: string; + /** + * Min specifies the minimum capacity allowed for a consumption request. Min 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. + */ + 'min': string; + /** + * Step defines the step size between valid capacity amounts within the range. Max (if set) and requestPolicy.default must be a multiple of Step. Min + Step must be less than or equal to the capacity value. + */ + 'step'?: string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "max", + "baseName": "max", + "type": "string", + "format": "" + }, + { + "name": "min", + "baseName": "min", + "type": "string", + "format": "" + }, + { + "name": "step", + "baseName": "step", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1CapacityRequestPolicyRange.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1CapacityRequirements.ts b/src/gen/models/V1CapacityRequirements.ts new file mode 100644 index 0000000000..3eafa69e6b --- /dev/null +++ b/src/gen/models/V1CapacityRequirements.ts @@ -0,0 +1,42 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http.js'; + +/** +* CapacityRequirements defines the capacity requirements for a specific device request. +*/ +export class V1CapacityRequirements { + /** + * Requests represent individual device resource requests for distinct resources, all of which must be provided by the device. This value is used as an additional filtering condition against the available capacity on the device. This is semantically equivalent to a CEL selector with `device.capacity[]..compareTo(quantity()) >= 0`. For example, device.capacity[\'test-driver.cdi.k8s.io\'].counters.compareTo(quantity(\'2\')) >= 0. When a requestPolicy is defined, the requested amount is adjusted upward to the nearest valid value based on the policy. If the requested amount cannot be adjusted to a valid value—because it exceeds what the requestPolicy allows— the device is considered ineligible for allocation. For any capacity that is not explicitly requested: - If no requestPolicy is set, the default consumed capacity is equal to the full device capacity (i.e., the whole device is claimed). - If a requestPolicy is set, the default consumed capacity is determined according to that policy. If the device allows multiple allocation, the aggregated amount across all requests must not exceed the capacity value. The consumed capacity, which may be adjusted based on the requestPolicy if defined, is recorded in the resource claim’s status.devices[*].consumedCapacity field. + */ + 'requests'?: { [key: string]: string; }; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "requests", + "baseName": "requests", + "type": "{ [key: string]: string; }", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1CapacityRequirements.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1CephFSPersistentVolumeSource.ts b/src/gen/models/V1CephFSPersistentVolumeSource.ts index 0cbfb6b0e5..840e3aea6c 100644 --- a/src/gen/models/V1CephFSPersistentVolumeSource.ts +++ b/src/gen/models/V1CephFSPersistentVolumeSource.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CephFSVolumeSource.ts b/src/gen/models/V1CephFSVolumeSource.ts index 437720211e..a7b350e616 100644 --- a/src/gen/models/V1CephFSVolumeSource.ts +++ b/src/gen/models/V1CephFSVolumeSource.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CertificateSigningRequest.ts b/src/gen/models/V1CertificateSigningRequest.ts index 7ba8cdea86..e124dd004c 100644 --- a/src/gen/models/V1CertificateSigningRequest.ts +++ b/src/gen/models/V1CertificateSigningRequest.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CertificateSigningRequestCondition.ts b/src/gen/models/V1CertificateSigningRequestCondition.ts index 464583d7c7..8decfda231 100644 --- a/src/gen/models/V1CertificateSigningRequestCondition.ts +++ b/src/gen/models/V1CertificateSigningRequestCondition.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CertificateSigningRequestList.ts b/src/gen/models/V1CertificateSigningRequestList.ts index 0fa517afac..264e47e622 100644 --- a/src/gen/models/V1CertificateSigningRequestList.ts +++ b/src/gen/models/V1CertificateSigningRequestList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CertificateSigningRequestSpec.ts b/src/gen/models/V1CertificateSigningRequestSpec.ts index c760626c2f..df7510585e 100644 --- a/src/gen/models/V1CertificateSigningRequestSpec.ts +++ b/src/gen/models/V1CertificateSigningRequestSpec.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CertificateSigningRequestStatus.ts b/src/gen/models/V1CertificateSigningRequestStatus.ts index 6065076dab..b592847a56 100644 --- a/src/gen/models/V1CertificateSigningRequestStatus.ts +++ b/src/gen/models/V1CertificateSigningRequestStatus.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CinderPersistentVolumeSource.ts b/src/gen/models/V1CinderPersistentVolumeSource.ts index 9ae06fa288..5cebda4f15 100644 --- a/src/gen/models/V1CinderPersistentVolumeSource.ts +++ b/src/gen/models/V1CinderPersistentVolumeSource.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CinderVolumeSource.ts b/src/gen/models/V1CinderVolumeSource.ts index 858a3e809c..a5deb5a0f4 100644 --- a/src/gen/models/V1CinderVolumeSource.ts +++ b/src/gen/models/V1CinderVolumeSource.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ClientIPConfig.ts b/src/gen/models/V1ClientIPConfig.ts index 65909edddf..c1086ca08e 100644 --- a/src/gen/models/V1ClientIPConfig.ts +++ b/src/gen/models/V1ClientIPConfig.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ClusterRole.ts b/src/gen/models/V1ClusterRole.ts index 9ae40136ae..7b70f07194 100644 --- a/src/gen/models/V1ClusterRole.ts +++ b/src/gen/models/V1ClusterRole.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ClusterRoleBinding.ts b/src/gen/models/V1ClusterRoleBinding.ts index 0d3c5bbeab..9d28735e73 100644 --- a/src/gen/models/V1ClusterRoleBinding.ts +++ b/src/gen/models/V1ClusterRoleBinding.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ClusterRoleBindingList.ts b/src/gen/models/V1ClusterRoleBindingList.ts index 21ebc16bdd..53079945bb 100644 --- a/src/gen/models/V1ClusterRoleBindingList.ts +++ b/src/gen/models/V1ClusterRoleBindingList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ClusterRoleList.ts b/src/gen/models/V1ClusterRoleList.ts index 594dc5af61..b05f324b1b 100644 --- a/src/gen/models/V1ClusterRoleList.ts +++ b/src/gen/models/V1ClusterRoleList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ClusterTrustBundleProjection.ts b/src/gen/models/V1ClusterTrustBundleProjection.ts index a552e09326..dd880cc024 100644 --- a/src/gen/models/V1ClusterTrustBundleProjection.ts +++ b/src/gen/models/V1ClusterTrustBundleProjection.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ComponentCondition.ts b/src/gen/models/V1ComponentCondition.ts index bc63633fd1..ef6cef82c7 100644 --- a/src/gen/models/V1ComponentCondition.ts +++ b/src/gen/models/V1ComponentCondition.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ComponentStatus.ts b/src/gen/models/V1ComponentStatus.ts index 083b74f9c4..0eceaeed8f 100644 --- a/src/gen/models/V1ComponentStatus.ts +++ b/src/gen/models/V1ComponentStatus.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ComponentStatusList.ts b/src/gen/models/V1ComponentStatusList.ts index 6503a7610b..2b31aa6aef 100644 --- a/src/gen/models/V1ComponentStatusList.ts +++ b/src/gen/models/V1ComponentStatusList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1Condition.ts b/src/gen/models/V1Condition.ts index 4764182527..67cc73f58b 100644 --- a/src/gen/models/V1Condition.ts +++ b/src/gen/models/V1Condition.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ConfigMap.ts b/src/gen/models/V1ConfigMap.ts index 5a99f60888..e49d55ef9c 100644 --- a/src/gen/models/V1ConfigMap.ts +++ b/src/gen/models/V1ConfigMap.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ConfigMapEnvSource.ts b/src/gen/models/V1ConfigMapEnvSource.ts index b3e3468a06..cdab7f5ec9 100644 --- a/src/gen/models/V1ConfigMapEnvSource.ts +++ b/src/gen/models/V1ConfigMapEnvSource.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ConfigMapKeySelector.ts b/src/gen/models/V1ConfigMapKeySelector.ts index 8181aeac35..bd42ac0033 100644 --- a/src/gen/models/V1ConfigMapKeySelector.ts +++ b/src/gen/models/V1ConfigMapKeySelector.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ConfigMapList.ts b/src/gen/models/V1ConfigMapList.ts index bb16b5c8e5..e9bed71663 100644 --- a/src/gen/models/V1ConfigMapList.ts +++ b/src/gen/models/V1ConfigMapList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ConfigMapNodeConfigSource.ts b/src/gen/models/V1ConfigMapNodeConfigSource.ts index 44cf931dd0..69a2d5069e 100644 --- a/src/gen/models/V1ConfigMapNodeConfigSource.ts +++ b/src/gen/models/V1ConfigMapNodeConfigSource.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ConfigMapProjection.ts b/src/gen/models/V1ConfigMapProjection.ts index f9ad904ea7..2a3f69f2ef 100644 --- a/src/gen/models/V1ConfigMapProjection.ts +++ b/src/gen/models/V1ConfigMapProjection.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ConfigMapVolumeSource.ts b/src/gen/models/V1ConfigMapVolumeSource.ts index 070b293455..fe9b506a21 100644 --- a/src/gen/models/V1ConfigMapVolumeSource.ts +++ b/src/gen/models/V1ConfigMapVolumeSource.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1Container.ts b/src/gen/models/V1Container.ts index 715ae70d36..0d6b3fbfa6 100644 --- a/src/gen/models/V1Container.ts +++ b/src/gen/models/V1Container.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -12,6 +12,7 @@ import { V1ContainerPort } from '../models/V1ContainerPort.js'; import { V1ContainerResizePolicy } from '../models/V1ContainerResizePolicy.js'; +import { V1ContainerRestartRule } from '../models/V1ContainerRestartRule.js'; import { V1EnvFromSource } from '../models/V1EnvFromSource.js'; import { V1EnvVar } from '../models/V1EnvVar.js'; import { V1Lifecycle } from '../models/V1Lifecycle.js'; @@ -39,7 +40,7 @@ export class V1Container { */ 'env'?: Array; /** - * 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. + * 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. */ 'envFrom'?: Array; /** @@ -67,9 +68,13 @@ export class V1Container { 'resizePolicy'?: Array; 'resources'?: V1ResourceRequirements; /** - * RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is \"Always\". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod\'s restart policy and the container type. Setting the RestartPolicy as \"Always\" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy \"Always\" will be shut down. This lifecycle differs from normal init containers and is often referred to as a \"sidecar\" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. + * 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. */ 'restartPolicy'?: string; + /** + * 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. + */ + 'restartPolicyRules'?: Array; 'securityContext'?: V1SecurityContext; 'startupProbe'?: V1Probe; /** @@ -194,6 +199,12 @@ export class V1Container { "type": "string", "format": "" }, + { + "name": "restartPolicyRules", + "baseName": "restartPolicyRules", + "type": "Array", + "format": "" + }, { "name": "securityContext", "baseName": "securityContext", diff --git a/src/gen/models/V1ContainerExtendedResourceRequest.ts b/src/gen/models/V1ContainerExtendedResourceRequest.ts new file mode 100644 index 0000000000..51ec116925 --- /dev/null +++ b/src/gen/models/V1ContainerExtendedResourceRequest.ts @@ -0,0 +1,62 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http.js'; + +/** +* ContainerExtendedResourceRequest has the mapping of container name, extended resource name to the device request name. +*/ +export class V1ContainerExtendedResourceRequest { + /** + * The name of the container requesting resources. + */ + 'containerName': string; + /** + * The name of the request in the special ResourceClaim which corresponds to the extended resource. + */ + 'requestName': string; + /** + * The name of the extended resource in that container which gets backed by DRA. + */ + 'resourceName': string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "containerName", + "baseName": "containerName", + "type": "string", + "format": "" + }, + { + "name": "requestName", + "baseName": "requestName", + "type": "string", + "format": "" + }, + { + "name": "resourceName", + "baseName": "resourceName", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1ContainerExtendedResourceRequest.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1ContainerImage.ts b/src/gen/models/V1ContainerImage.ts index 7124aea2c0..1e825215d3 100644 --- a/src/gen/models/V1ContainerImage.ts +++ b/src/gen/models/V1ContainerImage.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ContainerPort.ts b/src/gen/models/V1ContainerPort.ts index ff771a1292..b9ae26e018 100644 --- a/src/gen/models/V1ContainerPort.ts +++ b/src/gen/models/V1ContainerPort.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ContainerResizePolicy.ts b/src/gen/models/V1ContainerResizePolicy.ts index c9d85b4b51..a674af1b71 100644 --- a/src/gen/models/V1ContainerResizePolicy.ts +++ b/src/gen/models/V1ContainerResizePolicy.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ContainerRestartRule.ts b/src/gen/models/V1ContainerRestartRule.ts new file mode 100644 index 0000000000..9a43bb595b --- /dev/null +++ b/src/gen/models/V1ContainerRestartRule.ts @@ -0,0 +1,50 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1ContainerRestartRuleOnExitCodes } from '../models/V1ContainerRestartRuleOnExitCodes.js'; +import { HttpFile } from '../http/http.js'; + +/** +* ContainerRestartRule describes how a container exit is handled. +*/ +export class V1ContainerRestartRule { + /** + * Specifies the action taken on a container exit if the requirements are satisfied. The only possible value is \"Restart\" to restart the container. + */ + 'action': string; + 'exitCodes'?: V1ContainerRestartRuleOnExitCodes; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "action", + "baseName": "action", + "type": "string", + "format": "" + }, + { + "name": "exitCodes", + "baseName": "exitCodes", + "type": "V1ContainerRestartRuleOnExitCodes", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1ContainerRestartRule.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1ContainerRestartRuleOnExitCodes.ts b/src/gen/models/V1ContainerRestartRuleOnExitCodes.ts new file mode 100644 index 0000000000..42ddd8ddaa --- /dev/null +++ b/src/gen/models/V1ContainerRestartRuleOnExitCodes.ts @@ -0,0 +1,52 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http.js'; + +/** +* ContainerRestartRuleOnExitCodes describes the condition for handling an exited container based on its exit codes. +*/ +export class V1ContainerRestartRuleOnExitCodes { + /** + * Represents the relationship between the container exit code(s) and the specified values. Possible values are: - In: the requirement is satisfied if the container exit code is in the set of specified values. - NotIn: the requirement is satisfied if the container exit code is not in the set of specified values. + */ + 'operator': string; + /** + * Specifies the set of values to check for container exit codes. At most 255 elements are allowed. + */ + 'values'?: Array; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "operator", + "baseName": "operator", + "type": "string", + "format": "" + }, + { + "name": "values", + "baseName": "values", + "type": "Array", + "format": "int32" + } ]; + + static getAttributeTypeMap() { + return V1ContainerRestartRuleOnExitCodes.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1ContainerState.ts b/src/gen/models/V1ContainerState.ts index 5e05b41d3f..1c6ee91deb 100644 --- a/src/gen/models/V1ContainerState.ts +++ b/src/gen/models/V1ContainerState.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ContainerStateRunning.ts b/src/gen/models/V1ContainerStateRunning.ts index 1837788d5b..74694f96af 100644 --- a/src/gen/models/V1ContainerStateRunning.ts +++ b/src/gen/models/V1ContainerStateRunning.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ContainerStateTerminated.ts b/src/gen/models/V1ContainerStateTerminated.ts index 9d3f5ca4f3..d79f278a5e 100644 --- a/src/gen/models/V1ContainerStateTerminated.ts +++ b/src/gen/models/V1ContainerStateTerminated.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ContainerStateWaiting.ts b/src/gen/models/V1ContainerStateWaiting.ts index f25db15e09..e94684962b 100644 --- a/src/gen/models/V1ContainerStateWaiting.ts +++ b/src/gen/models/V1ContainerStateWaiting.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ContainerStatus.ts b/src/gen/models/V1ContainerStatus.ts index 59ac5a4eb0..f4424486a1 100644 --- a/src/gen/models/V1ContainerStatus.ts +++ b/src/gen/models/V1ContainerStatus.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -60,6 +60,10 @@ export class V1ContainerStatus { */ 'started'?: boolean; 'state'?: V1ContainerState; + /** + * StopSignal reports the effective stop signal for this container + */ + 'stopSignal'?: string; 'user'?: V1ContainerUser; /** * Status of volume mounts. @@ -143,6 +147,12 @@ export class V1ContainerStatus { "type": "V1ContainerState", "format": "" }, + { + "name": "stopSignal", + "baseName": "stopSignal", + "type": "string", + "format": "" + }, { "name": "user", "baseName": "user", diff --git a/src/gen/models/V1ContainerUser.ts b/src/gen/models/V1ContainerUser.ts index 5e990d9e31..245b2a0e34 100644 --- a/src/gen/models/V1ContainerUser.ts +++ b/src/gen/models/V1ContainerUser.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ControllerRevision.ts b/src/gen/models/V1ControllerRevision.ts index 0d0847947a..bbbc4fbfdc 100644 --- a/src/gen/models/V1ControllerRevision.ts +++ b/src/gen/models/V1ControllerRevision.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1ControllerRevisionList.ts b/src/gen/models/V1ControllerRevisionList.ts index 9e55c8e804..c4f070b247 100644 --- a/src/gen/models/V1ControllerRevisionList.ts +++ b/src/gen/models/V1ControllerRevisionList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1Counter.ts b/src/gen/models/V1Counter.ts new file mode 100644 index 0000000000..3c17d27a06 --- /dev/null +++ b/src/gen/models/V1Counter.ts @@ -0,0 +1,42 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http.js'; + +/** +* Counter describes a quantity associated with a device. +*/ +export class V1Counter { + /** + * Value defines how much of a certain device counter is available. + */ + 'value': string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "value", + "baseName": "value", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1Counter.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1CounterSet.ts b/src/gen/models/V1CounterSet.ts new file mode 100644 index 0000000000..dbab57c539 --- /dev/null +++ b/src/gen/models/V1CounterSet.ts @@ -0,0 +1,53 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1Counter } from '../models/V1Counter.js'; +import { HttpFile } from '../http/http.js'; + +/** +* CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice. The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices. +*/ +export class V1CounterSet { + /** + * Counters defines the set of counters for this CounterSet The name of each counter must be unique in that set and must be a DNS label. The maximum number of counters in all sets is 32. + */ + 'counters': { [key: string]: V1Counter; }; + /** + * Name defines the name of the counter set. It must be a DNS label. + */ + 'name': string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "counters", + "baseName": "counters", + "type": "{ [key: string]: V1Counter; }", + "format": "" + }, + { + "name": "name", + "baseName": "name", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1CounterSet.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1CronJob.ts b/src/gen/models/V1CronJob.ts index 1374d8ed7f..d73dc9fe9f 100644 --- a/src/gen/models/V1CronJob.ts +++ b/src/gen/models/V1CronJob.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CronJobList.ts b/src/gen/models/V1CronJobList.ts index bf8daf56f5..45b4e62700 100644 --- a/src/gen/models/V1CronJobList.ts +++ b/src/gen/models/V1CronJobList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CronJobSpec.ts b/src/gen/models/V1CronJobSpec.ts index 61f8acd3f6..4fe58c33d6 100644 --- a/src/gen/models/V1CronJobSpec.ts +++ b/src/gen/models/V1CronJobSpec.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CronJobStatus.ts b/src/gen/models/V1CronJobStatus.ts index 32f6d954ac..c94f7d6614 100644 --- a/src/gen/models/V1CronJobStatus.ts +++ b/src/gen/models/V1CronJobStatus.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CrossVersionObjectReference.ts b/src/gen/models/V1CrossVersionObjectReference.ts index 444d3578cd..9a0cc8b6f6 100644 --- a/src/gen/models/V1CrossVersionObjectReference.ts +++ b/src/gen/models/V1CrossVersionObjectReference.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CustomResourceColumnDefinition.ts b/src/gen/models/V1CustomResourceColumnDefinition.ts index 83b1d7543b..ffa7de464a 100644 --- a/src/gen/models/V1CustomResourceColumnDefinition.ts +++ b/src/gen/models/V1CustomResourceColumnDefinition.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CustomResourceConversion.ts b/src/gen/models/V1CustomResourceConversion.ts index d70bc6e23f..d0e255b403 100644 --- a/src/gen/models/V1CustomResourceConversion.ts +++ b/src/gen/models/V1CustomResourceConversion.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CustomResourceDefinition.ts b/src/gen/models/V1CustomResourceDefinition.ts index 8d7bd9e80b..ddc9c874d2 100644 --- a/src/gen/models/V1CustomResourceDefinition.ts +++ b/src/gen/models/V1CustomResourceDefinition.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CustomResourceDefinitionCondition.ts b/src/gen/models/V1CustomResourceDefinitionCondition.ts index 976055bcd2..eb5b96d436 100644 --- a/src/gen/models/V1CustomResourceDefinitionCondition.ts +++ b/src/gen/models/V1CustomResourceDefinitionCondition.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CustomResourceDefinitionList.ts b/src/gen/models/V1CustomResourceDefinitionList.ts index 5a594de5a4..a169956ca2 100644 --- a/src/gen/models/V1CustomResourceDefinitionList.ts +++ b/src/gen/models/V1CustomResourceDefinitionList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CustomResourceDefinitionNames.ts b/src/gen/models/V1CustomResourceDefinitionNames.ts index e05acfd499..ffc02e9802 100644 --- a/src/gen/models/V1CustomResourceDefinitionNames.ts +++ b/src/gen/models/V1CustomResourceDefinitionNames.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CustomResourceDefinitionSpec.ts b/src/gen/models/V1CustomResourceDefinitionSpec.ts index 695c9daec2..190a2eadb8 100644 --- a/src/gen/models/V1CustomResourceDefinitionSpec.ts +++ b/src/gen/models/V1CustomResourceDefinitionSpec.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CustomResourceDefinitionStatus.ts b/src/gen/models/V1CustomResourceDefinitionStatus.ts index b14557a324..fc7a65d3d2 100644 --- a/src/gen/models/V1CustomResourceDefinitionStatus.ts +++ b/src/gen/models/V1CustomResourceDefinitionStatus.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CustomResourceDefinitionVersion.ts b/src/gen/models/V1CustomResourceDefinitionVersion.ts index 234f98b28b..a8124e58e5 100644 --- a/src/gen/models/V1CustomResourceDefinitionVersion.ts +++ b/src/gen/models/V1CustomResourceDefinitionVersion.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CustomResourceSubresourceScale.ts b/src/gen/models/V1CustomResourceSubresourceScale.ts index f2633c1f65..8384c51cac 100644 --- a/src/gen/models/V1CustomResourceSubresourceScale.ts +++ b/src/gen/models/V1CustomResourceSubresourceScale.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CustomResourceSubresources.ts b/src/gen/models/V1CustomResourceSubresources.ts index c11b85eb14..da4419916c 100644 --- a/src/gen/models/V1CustomResourceSubresources.ts +++ b/src/gen/models/V1CustomResourceSubresources.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1CustomResourceValidation.ts b/src/gen/models/V1CustomResourceValidation.ts index 3ba3f39234..e0e40bb712 100644 --- a/src/gen/models/V1CustomResourceValidation.ts +++ b/src/gen/models/V1CustomResourceValidation.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1DaemonEndpoint.ts b/src/gen/models/V1DaemonEndpoint.ts index 963a4cf823..d861a7b315 100644 --- a/src/gen/models/V1DaemonEndpoint.ts +++ b/src/gen/models/V1DaemonEndpoint.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1DaemonSet.ts b/src/gen/models/V1DaemonSet.ts index a0977e3558..fe4b4e78de 100644 --- a/src/gen/models/V1DaemonSet.ts +++ b/src/gen/models/V1DaemonSet.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1DaemonSetCondition.ts b/src/gen/models/V1DaemonSetCondition.ts index 2599a7d334..3611f67a6f 100644 --- a/src/gen/models/V1DaemonSetCondition.ts +++ b/src/gen/models/V1DaemonSetCondition.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1DaemonSetList.ts b/src/gen/models/V1DaemonSetList.ts index a3147b57b9..4ffb55b295 100644 --- a/src/gen/models/V1DaemonSetList.ts +++ b/src/gen/models/V1DaemonSetList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1DaemonSetSpec.ts b/src/gen/models/V1DaemonSetSpec.ts index c21db1a392..a92e5b6a13 100644 --- a/src/gen/models/V1DaemonSetSpec.ts +++ b/src/gen/models/V1DaemonSetSpec.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1DaemonSetStatus.ts b/src/gen/models/V1DaemonSetStatus.ts index 119d9b018f..ca8f9005bd 100644 --- a/src/gen/models/V1DaemonSetStatus.ts +++ b/src/gen/models/V1DaemonSetStatus.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1DaemonSetUpdateStrategy.ts b/src/gen/models/V1DaemonSetUpdateStrategy.ts index 9b6b78d40a..b8f783b39b 100644 --- a/src/gen/models/V1DaemonSetUpdateStrategy.ts +++ b/src/gen/models/V1DaemonSetUpdateStrategy.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1DeleteOptions.ts b/src/gen/models/V1DeleteOptions.ts index 9bc0d60710..a09306bb1d 100644 --- a/src/gen/models/V1DeleteOptions.ts +++ b/src/gen/models/V1DeleteOptions.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1Deployment.ts b/src/gen/models/V1Deployment.ts index 8aff3d586e..230012a4da 100644 --- a/src/gen/models/V1Deployment.ts +++ b/src/gen/models/V1Deployment.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1DeploymentCondition.ts b/src/gen/models/V1DeploymentCondition.ts index a72833b123..ea450de5a9 100644 --- a/src/gen/models/V1DeploymentCondition.ts +++ b/src/gen/models/V1DeploymentCondition.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1DeploymentList.ts b/src/gen/models/V1DeploymentList.ts index d9ae639746..f701f4c0b0 100644 --- a/src/gen/models/V1DeploymentList.ts +++ b/src/gen/models/V1DeploymentList.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1DeploymentSpec.ts b/src/gen/models/V1DeploymentSpec.ts index 76f447cadc..79eb56f345 100644 --- a/src/gen/models/V1DeploymentSpec.ts +++ b/src/gen/models/V1DeploymentSpec.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1DeploymentStatus.ts b/src/gen/models/V1DeploymentStatus.ts index f5ac1398a7..301d9bba75 100644 --- a/src/gen/models/V1DeploymentStatus.ts +++ b/src/gen/models/V1DeploymentStatus.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -18,7 +18,7 @@ import { HttpFile } from '../http/http.js'; */ export class V1DeploymentStatus { /** - * Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. + * Total number of available non-terminating pods (ready for at least minReadySeconds) targeted by this deployment. */ 'availableReplicas'?: number; /** @@ -34,19 +34,23 @@ export class V1DeploymentStatus { */ 'observedGeneration'?: number; /** - * readyReplicas is the number of pods targeted by this Deployment with a Ready Condition. + * Total number of non-terminating pods targeted by this Deployment with a Ready Condition. */ 'readyReplicas'?: number; /** - * Total number of non-terminated pods targeted by this deployment (their labels match the selector). + * Total number of non-terminating pods targeted by this deployment (their labels match the selector). */ 'replicas'?: number; /** + * Total number of terminating pods targeted by this deployment. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase. This is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field. + */ + 'terminatingReplicas'?: number; + /** * 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. */ 'unavailableReplicas'?: number; /** - * Total number of non-terminated pods targeted by this deployment that have the desired template spec. + * Total number of non-terminating pods targeted by this deployment that have the desired template spec. */ 'updatedReplicas'?: number; @@ -91,6 +95,12 @@ export class V1DeploymentStatus { "type": "number", "format": "int32" }, + { + "name": "terminatingReplicas", + "baseName": "terminatingReplicas", + "type": "number", + "format": "int32" + }, { "name": "unavailableReplicas", "baseName": "unavailableReplicas", diff --git a/src/gen/models/V1DeploymentStrategy.ts b/src/gen/models/V1DeploymentStrategy.ts index 7337e39c0f..754191c25d 100644 --- a/src/gen/models/V1DeploymentStrategy.ts +++ b/src/gen/models/V1DeploymentStrategy.ts @@ -2,7 +2,7 @@ * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.32.0 + * OpenAPI spec version: v1.34.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/gen/models/V1Device.ts b/src/gen/models/V1Device.ts new file mode 100644 index 0000000000..d9b6756db3 --- /dev/null +++ b/src/gen/models/V1Device.ts @@ -0,0 +1,154 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1DeviceAttribute } from '../models/V1DeviceAttribute.js'; +import { V1DeviceCapacity } from '../models/V1DeviceCapacity.js'; +import { V1DeviceCounterConsumption } from '../models/V1DeviceCounterConsumption.js'; +import { V1DeviceTaint } from '../models/V1DeviceTaint.js'; +import { V1NodeSelector } from '../models/V1NodeSelector.js'; +import { HttpFile } from '../http/http.js'; + +/** +* Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set. +*/ +export class V1Device { + /** + * AllNodes indicates that all nodes have access to the device. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. + */ + 'allNodes'?: boolean; + /** + * AllowMultipleAllocations marks whether the device is allowed to be allocated to multiple DeviceRequests. If AllowMultipleAllocations is set to true, the device can be allocated more than once, and all of its capacity is consumable, regardless of whether the requestPolicy is defined or not. + */ + 'allowMultipleAllocations'?: boolean; + /** + * Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set. The maximum number of attributes and capacities combined is 32. + */ + 'attributes'?: { [key: string]: V1DeviceAttribute; }; + /** + * BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod. The maximum number of binding conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + */ + 'bindingConditions'?: Array; + /** + * BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is set to \"True\", a binding failure occurred. The maximum number of binding failure conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + */ + 'bindingFailureConditions'?: Array; + /** + * BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + */ + 'bindsToNode'?: boolean; + /** + * Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set. The maximum number of attributes and capacities combined is 32. + */ + 'capacity'?: { [key: string]: V1DeviceCapacity; }; + /** + * ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets. There can only be a single entry per counterSet. The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each). + */ + 'consumesCounters'?: Array; + /** + * Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label. + */ + 'name': string; + /** + * NodeName identifies the node where the device is available. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. + */ + 'nodeName'?: string; + 'nodeSelector'?: V1NodeSelector; + /** + * If specified, these are the driver-defined taints. The maximum number of taints is 4. This is an alpha field and requires enabling the DRADeviceTaints feature gate. + */ + 'taints'?: Array; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "allNodes", + "baseName": "allNodes", + "type": "boolean", + "format": "" + }, + { + "name": "allowMultipleAllocations", + "baseName": "allowMultipleAllocations", + "type": "boolean", + "format": "" + }, + { + "name": "attributes", + "baseName": "attributes", + "type": "{ [key: string]: V1DeviceAttribute; }", + "format": "" + }, + { + "name": "bindingConditions", + "baseName": "bindingConditions", + "type": "Array", + "format": "" + }, + { + "name": "bindingFailureConditions", + "baseName": "bindingFailureConditions", + "type": "Array", + "format": "" + }, + { + "name": "bindsToNode", + "baseName": "bindsToNode", + "type": "boolean", + "format": "" + }, + { + "name": "capacity", + "baseName": "capacity", + "type": "{ [key: string]: V1DeviceCapacity; }", + "format": "" + }, + { + "name": "consumesCounters", + "baseName": "consumesCounters", + "type": "Array", + "format": "" + }, + { + "name": "name", + "baseName": "name", + "type": "string", + "format": "" + }, + { + "name": "nodeName", + "baseName": "nodeName", + "type": "string", + "format": "" + }, + { + "name": "nodeSelector", + "baseName": "nodeSelector", + "type": "V1NodeSelector", + "format": "" + }, + { + "name": "taints", + "baseName": "taints", + "type": "Array", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1Device.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceAllocationConfiguration.ts b/src/gen/models/V1DeviceAllocationConfiguration.ts new file mode 100644 index 0000000000..ecef81e0d2 --- /dev/null +++ b/src/gen/models/V1DeviceAllocationConfiguration.ts @@ -0,0 +1,60 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1OpaqueDeviceConfiguration } from '../models/V1OpaqueDeviceConfiguration.js'; +import { HttpFile } from '../http/http.js'; + +/** +* DeviceAllocationConfiguration gets embedded in an AllocationResult. +*/ +export class V1DeviceAllocationConfiguration { + 'opaque'?: V1OpaqueDeviceConfiguration; + /** + * Requests lists the names of requests where the configuration applies. If empty, its applies to all requests. References to subrequests must include the name of the main request and may include the subrequest using the format
[/]. If just the main request is given, the configuration applies to all subrequests. + */ + 'requests'?: Array; + /** + * 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. + */ + 'source': string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "opaque", + "baseName": "opaque", + "type": "V1OpaqueDeviceConfiguration", + "format": "" + }, + { + "name": "requests", + "baseName": "requests", + "type": "Array", + "format": "" + }, + { + "name": "source", + "baseName": "source", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceAllocationConfiguration.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceAllocationResult.ts b/src/gen/models/V1DeviceAllocationResult.ts new file mode 100644 index 0000000000..8c3022a3d0 --- /dev/null +++ b/src/gen/models/V1DeviceAllocationResult.ts @@ -0,0 +1,54 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1DeviceAllocationConfiguration } from '../models/V1DeviceAllocationConfiguration.js'; +import { V1DeviceRequestAllocationResult } from '../models/V1DeviceRequestAllocationResult.js'; +import { HttpFile } from '../http/http.js'; + +/** +* DeviceAllocationResult is the result of allocating devices. +*/ +export class V1DeviceAllocationResult { + /** + * This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag. This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters. + */ + 'config'?: Array; + /** + * Results lists all allocated devices. + */ + 'results'?: Array; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "config", + "baseName": "config", + "type": "Array", + "format": "" + }, + { + "name": "results", + "baseName": "results", + "type": "Array", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceAllocationResult.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceAttribute.ts b/src/gen/models/V1DeviceAttribute.ts new file mode 100644 index 0000000000..21e386ea95 --- /dev/null +++ b/src/gen/models/V1DeviceAttribute.ts @@ -0,0 +1,72 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http.js'; + +/** +* DeviceAttribute must have exactly one field set. +*/ +export class V1DeviceAttribute { + /** + * BoolValue is a true/false value. + */ + 'bool'?: boolean; + /** + * IntValue is a number. + */ + '_int'?: number; + /** + * StringValue is a string. Must not be longer than 64 characters. + */ + 'string'?: string; + /** + * VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters. + */ + 'version'?: string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "bool", + "baseName": "bool", + "type": "boolean", + "format": "" + }, + { + "name": "_int", + "baseName": "int", + "type": "number", + "format": "int64" + }, + { + "name": "string", + "baseName": "string", + "type": "string", + "format": "" + }, + { + "name": "version", + "baseName": "version", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceAttribute.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceCapacity.ts b/src/gen/models/V1DeviceCapacity.ts new file mode 100644 index 0000000000..5e57fb1cf3 --- /dev/null +++ b/src/gen/models/V1DeviceCapacity.ts @@ -0,0 +1,50 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1CapacityRequestPolicy } from '../models/V1CapacityRequestPolicy.js'; +import { HttpFile } from '../http/http.js'; + +/** +* DeviceCapacity describes a quantity associated with a device. +*/ +export class V1DeviceCapacity { + 'requestPolicy'?: V1CapacityRequestPolicy; + /** + * Value defines how much of a certain capacity that device has. This field reflects the fixed total capacity and does not change. The consumed amount is tracked separately by scheduler and does not affect this value. + */ + 'value': string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "requestPolicy", + "baseName": "requestPolicy", + "type": "V1CapacityRequestPolicy", + "format": "" + }, + { + "name": "value", + "baseName": "value", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceCapacity.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceClaim.ts b/src/gen/models/V1DeviceClaim.ts new file mode 100644 index 0000000000..34ec6664ed --- /dev/null +++ b/src/gen/models/V1DeviceClaim.ts @@ -0,0 +1,65 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1DeviceClaimConfiguration } from '../models/V1DeviceClaimConfiguration.js'; +import { V1DeviceConstraint } from '../models/V1DeviceConstraint.js'; +import { V1DeviceRequest } from '../models/V1DeviceRequest.js'; +import { HttpFile } from '../http/http.js'; + +/** +* DeviceClaim defines how to request devices with a ResourceClaim. +*/ +export class V1DeviceClaim { + /** + * This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim. + */ + 'config'?: Array; + /** + * These constraints must be satisfied by the set of devices that get allocated for the claim. + */ + 'constraints'?: Array; + /** + * Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated. + */ + 'requests'?: Array; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "config", + "baseName": "config", + "type": "Array", + "format": "" + }, + { + "name": "constraints", + "baseName": "constraints", + "type": "Array", + "format": "" + }, + { + "name": "requests", + "baseName": "requests", + "type": "Array", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceClaim.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceClaimConfiguration.ts b/src/gen/models/V1DeviceClaimConfiguration.ts new file mode 100644 index 0000000000..083e569ae3 --- /dev/null +++ b/src/gen/models/V1DeviceClaimConfiguration.ts @@ -0,0 +1,50 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1OpaqueDeviceConfiguration } from '../models/V1OpaqueDeviceConfiguration.js'; +import { HttpFile } from '../http/http.js'; + +/** +* DeviceClaimConfiguration is used for configuration parameters in DeviceClaim. +*/ +export class V1DeviceClaimConfiguration { + 'opaque'?: V1OpaqueDeviceConfiguration; + /** + * Requests lists the names of requests where the configuration applies. If empty, it applies to all requests. References to subrequests must include the name of the main request and may include the subrequest using the format
[/]. If just the main request is given, the configuration applies to all subrequests. + */ + 'requests'?: Array; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "opaque", + "baseName": "opaque", + "type": "V1OpaqueDeviceConfiguration", + "format": "" + }, + { + "name": "requests", + "baseName": "requests", + "type": "Array", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceClaimConfiguration.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceClass.ts b/src/gen/models/V1DeviceClass.ts new file mode 100644 index 0000000000..0744f3083e --- /dev/null +++ b/src/gen/models/V1DeviceClass.ts @@ -0,0 +1,68 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1DeviceClassSpec } from '../models/V1DeviceClassSpec.js'; +import { V1ObjectMeta } from '../models/V1ObjectMeta.js'; +import { HttpFile } from '../http/http.js'; + +/** +* DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. +*/ +export class V1DeviceClass { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + */ + 'apiVersion'?: string; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + */ + 'kind'?: string; + 'metadata'?: V1ObjectMeta; + 'spec': V1DeviceClassSpec; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "apiVersion", + "baseName": "apiVersion", + "type": "string", + "format": "" + }, + { + "name": "kind", + "baseName": "kind", + "type": "string", + "format": "" + }, + { + "name": "metadata", + "baseName": "metadata", + "type": "V1ObjectMeta", + "format": "" + }, + { + "name": "spec", + "baseName": "spec", + "type": "V1DeviceClassSpec", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceClass.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceClassConfiguration.ts b/src/gen/models/V1DeviceClassConfiguration.ts new file mode 100644 index 0000000000..515098e8a7 --- /dev/null +++ b/src/gen/models/V1DeviceClassConfiguration.ts @@ -0,0 +1,40 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1OpaqueDeviceConfiguration } from '../models/V1OpaqueDeviceConfiguration.js'; +import { HttpFile } from '../http/http.js'; + +/** +* DeviceClassConfiguration is used in DeviceClass. +*/ +export class V1DeviceClassConfiguration { + 'opaque'?: V1OpaqueDeviceConfiguration; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "opaque", + "baseName": "opaque", + "type": "V1OpaqueDeviceConfiguration", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceClassConfiguration.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceClassList.ts b/src/gen/models/V1DeviceClassList.ts new file mode 100644 index 0000000000..3b12d08782 --- /dev/null +++ b/src/gen/models/V1DeviceClassList.ts @@ -0,0 +1,71 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1DeviceClass } from '../models/V1DeviceClass.js'; +import { V1ListMeta } from '../models/V1ListMeta.js'; +import { HttpFile } from '../http/http.js'; + +/** +* DeviceClassList is a collection of classes. +*/ +export class V1DeviceClassList { + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + */ + 'apiVersion'?: string; + /** + * Items is the list of resource classes. + */ + 'items': Array; + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + */ + 'kind'?: string; + 'metadata'?: V1ListMeta; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "apiVersion", + "baseName": "apiVersion", + "type": "string", + "format": "" + }, + { + "name": "items", + "baseName": "items", + "type": "Array", + "format": "" + }, + { + "name": "kind", + "baseName": "kind", + "type": "string", + "format": "" + }, + { + "name": "metadata", + "baseName": "metadata", + "type": "V1ListMeta", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceClassList.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceClassSpec.ts b/src/gen/models/V1DeviceClassSpec.ts new file mode 100644 index 0000000000..7d1a67ae44 --- /dev/null +++ b/src/gen/models/V1DeviceClassSpec.ts @@ -0,0 +1,64 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1DeviceClassConfiguration } from '../models/V1DeviceClassConfiguration.js'; +import { V1DeviceSelector } from '../models/V1DeviceSelector.js'; +import { HttpFile } from '../http/http.js'; + +/** +* DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it. +*/ +export class V1DeviceClassSpec { + /** + * Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver. They are passed to the driver, but are not considered while allocating the claim. + */ + 'config'?: Array; + /** + * ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod\'s extended resource requests. It has the same format as the name of a pod\'s extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod\'s extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is an alpha field. + */ + 'extendedResourceName'?: string; + /** + * Each selector must be satisfied by a device which is claimed via this class. + */ + 'selectors'?: Array; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "config", + "baseName": "config", + "type": "Array", + "format": "" + }, + { + "name": "extendedResourceName", + "baseName": "extendedResourceName", + "type": "string", + "format": "" + }, + { + "name": "selectors", + "baseName": "selectors", + "type": "Array", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceClassSpec.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceConstraint.ts b/src/gen/models/V1DeviceConstraint.ts new file mode 100644 index 0000000000..74adafe1b7 --- /dev/null +++ b/src/gen/models/V1DeviceConstraint.ts @@ -0,0 +1,62 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http.js'; + +/** +* DeviceConstraint must have exactly one field set besides Requests. +*/ +export class V1DeviceConstraint { + /** + * DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. This acts as the inverse of MatchAttribute. This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. This is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs. + */ + 'distinctAttribute'?: string; + /** + * MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices. For example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn\'t, then it also will not be chosen. Must include the domain qualifier. + */ + 'matchAttribute'?: string; + /** + * Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim. References to subrequests must include the name of the main request and may include the subrequest using the format
[/]. If just the main request is given, the constraint applies to all subrequests. + */ + 'requests'?: Array; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "distinctAttribute", + "baseName": "distinctAttribute", + "type": "string", + "format": "" + }, + { + "name": "matchAttribute", + "baseName": "matchAttribute", + "type": "string", + "format": "" + }, + { + "name": "requests", + "baseName": "requests", + "type": "Array", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceConstraint.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceCounterConsumption.ts b/src/gen/models/V1DeviceCounterConsumption.ts new file mode 100644 index 0000000000..51b1c85b44 --- /dev/null +++ b/src/gen/models/V1DeviceCounterConsumption.ts @@ -0,0 +1,53 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1Counter } from '../models/V1Counter.js'; +import { HttpFile } from '../http/http.js'; + +/** +* DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet. +*/ +export class V1DeviceCounterConsumption { + /** + * CounterSet is the name of the set from which the counters defined will be consumed. + */ + 'counterSet': string; + /** + * Counters defines the counters that will be consumed by the device. The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each). + */ + 'counters': { [key: string]: V1Counter; }; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "counterSet", + "baseName": "counterSet", + "type": "string", + "format": "" + }, + { + "name": "counters", + "baseName": "counters", + "type": "{ [key: string]: V1Counter; }", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceCounterConsumption.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceRequest.ts b/src/gen/models/V1DeviceRequest.ts new file mode 100644 index 0000000000..141594d4d0 --- /dev/null +++ b/src/gen/models/V1DeviceRequest.ts @@ -0,0 +1,61 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1DeviceSubRequest } from '../models/V1DeviceSubRequest.js'; +import { V1ExactDeviceRequest } from '../models/V1ExactDeviceRequest.js'; +import { HttpFile } from '../http/http.js'; + +/** +* 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. +*/ +export class V1DeviceRequest { + 'exactly'?: V1ExactDeviceRequest; + /** + * FirstAvailable contains subrequests, of which exactly one will be selected by the scheduler. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one can not be used. DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later. + */ + 'firstAvailable'?: Array; + /** + * Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim. References using the name in the DeviceRequest will uniquely identify a request when the Exactly field is set. When the FirstAvailable field is set, a reference to the name of the DeviceRequest will match whatever subrequest is chosen by the scheduler. Must be a DNS label. + */ + 'name': string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "exactly", + "baseName": "exactly", + "type": "V1ExactDeviceRequest", + "format": "" + }, + { + "name": "firstAvailable", + "baseName": "firstAvailable", + "type": "Array", + "format": "" + }, + { + "name": "name", + "baseName": "name", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceRequest.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceRequestAllocationResult.ts b/src/gen/models/V1DeviceRequestAllocationResult.ts new file mode 100644 index 0000000000..2fb9577cda --- /dev/null +++ b/src/gen/models/V1DeviceRequestAllocationResult.ts @@ -0,0 +1,133 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1DeviceToleration } from '../models/V1DeviceToleration.js'; +import { HttpFile } from '../http/http.js'; + +/** +* DeviceRequestAllocationResult contains the allocation result for one request. +*/ +export class V1DeviceRequestAllocationResult { + /** + * AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. + */ + 'adminAccess'?: boolean; + /** + * BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + */ + 'bindingConditions'?: Array; + /** + * BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + */ + 'bindingFailureConditions'?: Array; + /** + * ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request. The consumed amount may differ from the requested amount: it is rounded up to the nearest valid value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount). The total consumed capacity for each device must not exceed the DeviceCapacity\'s Value. This field is populated only for devices that allow multiple allocations. All capacity entries are included, even if the consumed amount is zero. + */ + 'consumedCapacity'?: { [key: string]: string; }; + /** + * Device references one device instance via its name in the driver\'s resource pool. It must be a DNS label. + */ + 'device': string; + /** + * Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. + */ + 'driver': string; + /** + * This name together with the driver name and the device name field identify which device was allocated (`//`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. + */ + 'pool': string; + /** + * Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format
/. Multiple devices may have been allocated per request. + */ + 'request': string; + /** + * ShareID uniquely identifies an individual allocation share of the device, used when the device supports multiple simultaneous allocations. It serves as an additional map key to differentiate concurrent shares of the same device. + */ + 'shareID'?: string; + /** + * A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. + */ + 'tolerations'?: Array; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "adminAccess", + "baseName": "adminAccess", + "type": "boolean", + "format": "" + }, + { + "name": "bindingConditions", + "baseName": "bindingConditions", + "type": "Array", + "format": "" + }, + { + "name": "bindingFailureConditions", + "baseName": "bindingFailureConditions", + "type": "Array", + "format": "" + }, + { + "name": "consumedCapacity", + "baseName": "consumedCapacity", + "type": "{ [key: string]: string; }", + "format": "" + }, + { + "name": "device", + "baseName": "device", + "type": "string", + "format": "" + }, + { + "name": "driver", + "baseName": "driver", + "type": "string", + "format": "" + }, + { + "name": "pool", + "baseName": "pool", + "type": "string", + "format": "" + }, + { + "name": "request", + "baseName": "request", + "type": "string", + "format": "" + }, + { + "name": "shareID", + "baseName": "shareID", + "type": "string", + "format": "" + }, + { + "name": "tolerations", + "baseName": "tolerations", + "type": "Array", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceRequestAllocationResult.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceSelector.ts b/src/gen/models/V1DeviceSelector.ts new file mode 100644 index 0000000000..0e75ca886a --- /dev/null +++ b/src/gen/models/V1DeviceSelector.ts @@ -0,0 +1,40 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1CELDeviceSelector } from '../models/V1CELDeviceSelector.js'; +import { HttpFile } from '../http/http.js'; + +/** +* DeviceSelector must have exactly one field set. +*/ +export class V1DeviceSelector { + 'cel'?: V1CELDeviceSelector; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "cel", + "baseName": "cel", + "type": "V1CELDeviceSelector", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceSelector.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceSubRequest.ts b/src/gen/models/V1DeviceSubRequest.ts new file mode 100644 index 0000000000..4fb7f965c7 --- /dev/null +++ b/src/gen/models/V1DeviceSubRequest.ts @@ -0,0 +1,102 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { V1CapacityRequirements } from '../models/V1CapacityRequirements.js'; +import { V1DeviceSelector } from '../models/V1DeviceSelector.js'; +import { V1DeviceToleration } from '../models/V1DeviceToleration.js'; +import { HttpFile } from '../http/http.js'; + +/** +* DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices. DeviceSubRequest is similar to ExactDeviceRequest, but doesn\'t expose the AdminAccess field as that one is only supported when requesting a specific device. +*/ +export class V1DeviceSubRequest { + /** + * AllocationMode and its related fields define how devices are allocated to satisfy this subrequest. Supported values are: - ExactCount: This request is for a specific number of devices. This is the default. The exact number is provided in the count field. - All: This subrequest is for all of the matching devices in a pool. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other subrequests must specify this field. More modes may get added in the future. Clients must refuse to handle requests with unknown modes. + */ + 'allocationMode'?: string; + 'capacity'?: V1CapacityRequirements; + /** + * 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. + */ + 'count'?: number; + /** + * DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest. A class is required. Which classes are available depends on the cluster. Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference. + */ + 'deviceClassName': string; + /** + * Name can be used to reference this subrequest in the list of constraints or the list of configurations for the claim. References must use the format
/. Must be a DNS label. + */ + 'name': string; + /** + * 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. + */ + 'selectors'?: Array; + /** + * If specified, the request\'s tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. + */ + 'tolerations'?: Array; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "allocationMode", + "baseName": "allocationMode", + "type": "string", + "format": "" + }, + { + "name": "capacity", + "baseName": "capacity", + "type": "V1CapacityRequirements", + "format": "" + }, + { + "name": "count", + "baseName": "count", + "type": "number", + "format": "int64" + }, + { + "name": "deviceClassName", + "baseName": "deviceClassName", + "type": "string", + "format": "" + }, + { + "name": "name", + "baseName": "name", + "type": "string", + "format": "" + }, + { + "name": "selectors", + "baseName": "selectors", + "type": "Array", + "format": "" + }, + { + "name": "tolerations", + "baseName": "tolerations", + "type": "Array", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceSubRequest.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceTaint.ts b/src/gen/models/V1DeviceTaint.ts new file mode 100644 index 0000000000..c9b8301b84 --- /dev/null +++ b/src/gen/models/V1DeviceTaint.ts @@ -0,0 +1,72 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http.js'; + +/** +* 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. +*/ +export class V1DeviceTaint { + /** + * 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. + */ + 'effect': string; + /** + * The taint key to be applied to a device. Must be a label name. + */ + 'key': string; + /** + * TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set. + */ + 'timeAdded'?: Date; + /** + * The taint value corresponding to the taint key. Must be a label value. + */ + 'value'?: string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "effect", + "baseName": "effect", + "type": "string", + "format": "" + }, + { + "name": "key", + "baseName": "key", + "type": "string", + "format": "" + }, + { + "name": "timeAdded", + "baseName": "timeAdded", + "type": "Date", + "format": "date-time" + }, + { + "name": "value", + "baseName": "value", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return V1DeviceTaint.attributeTypeMap; + } + + public constructor() { + } +} diff --git a/src/gen/models/V1DeviceToleration.ts b/src/gen/models/V1DeviceToleration.ts new file mode 100644 index 0000000000..766e7913f6 --- /dev/null +++ b/src/gen/models/V1DeviceToleration.ts @@ -0,0 +1,82 @@ +/** + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: v1.34.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { HttpFile } from '../http/http.js'; + +/** +* The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple using the matching operator . +*/ +export class V1DeviceToleration { + /** + * Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule and NoExecute. + */ + 'effect'?: string; + /** + * Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. Must be a label name. + */ + 'key'?: string; + /** + * Operator represents a key\'s relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a ResourceClaim can tolerate all taints of a particular category. + */ + 'operator'?: string; + /** + * 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